Skip to content

Curve style

CurveStyle dataclass

Curve style base class.

Source code in hakowan/grammar/channel/curvestyle.py
@dataclass
class CurveStyle:
    """Curve style base class."""

    pass

Bend dataclass

Bases: CurveStyle

Curve bending style.

Attributes:

Name Type Description
direction AttributeLike

The attribute used to encode the bending direction.

bend_type str

The type of bending (options are 's', 'r', 'n'). The default value is 'n'.

Source code in hakowan/grammar/channel/curvestyle.py
@dataclass
class Bend(CurveStyle):
    """ Curve bending style.

    Attributes:
        direction (AttributeLike): The attribute used to encode the bending direction.
        bend_type (str): The type of bending (options are 's', 'r', 'n'). The default value is 'n'.
    """
    direction: AttributeLike
    bend_type: str = "n"