neoscore.core.path_element
Objects representing individual elements of Paths.
With the exception of CurveTo, each of these classes is just a bare
PositionedObject.
- class neoscore.core.path_element.PathElement[source]
Bases:
PositionedObjectSuperclass for all path element types
- class neoscore.core.path_element.MoveTo[source]
Bases:
PathElementAn element representing the start of a new subpath
- class neoscore.core.path_element.LineTo[source]
Bases:
PathElementAn element representing a straight line from the last path position
- class neoscore.core.path_element.ControlPoint[source]
Bases:
PathElementAn element used as a control point in bezier curves.
This element is not directly kept in
Path.elements, instead being placed insideCurveToelements.
- class neoscore.core.path_element.CurveTo[source]
Bases:
PathElement- __init__(pos: PointDef, parent: PositionedObject, control_1: ControlPoint, control_2: ControlPoint)[source]
- Parameters
pos – The position of the object relative to its parent
parent – The parent object.
control_1 – The curve’s first control point
control_2 – The curve’s second control point