drawable
A dictionary that contains path or content data that will actually get drawn by the canvas. Can also be an array of this type.
apply-transform
apply-transform() -> drawable
Applies a transform to drawables. If a single drawable is given it will be returned in a single element array.
path
path() -> drawable
Creates a path drawable from path segements.
content
content() -> drawable
Creates a content drawable.
ellipse
ellipse() -> drawable
Creates a path drawable in the shape of an ellipse.
arc
arc(x: float,y: float,z: float,start: angle,stop: angle,rx: float,ry: float,mode: str,fill: colornone,stroke: stroke,) -> drawable
Creates a path drawable in the shape of an arc.
How to draw the arc: "OPEN"
leaves the path open, "CLOSED"
closes the arc by drawing a straight line between the end of the arc and its start, "PIE"
also closes the arc by drawing a line from its end to its origin then to its start.