neoscore.core.painted_object
- class neoscore.core.painted_object.PaintedObject[source]
Bases:
PositionedObject
A
PositionedObject
which is painted with a pen (outline) and brush (fill).This is mostly meant to be used as a superclass for other classes which need this behavior.
- __init__(pos: PointDef, parent: Optional[PositionedObject], brush: Optional[BrushDef] = None, pen: Optional[PenDef] = None)[source]
- Parameters
pos – The position of the object relative to its parent
pen – The pen to draw outlines with.
brush – The brush to fill shapes with.
parent – The parent object or None