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() -> drawable
Applies a transform to drawables. If a single drawable is given it will be returned in a single element array.
The transformation matrix.
The drawables to transform.
path
path() -> drawable
Creates a path drawable from path segements.
The segments to create the path from.
If true
the path will be closed.
The color to fill the path with.
One of "even-odd" or "non-zero".
content
content() -> drawable
Creates a content drawable.
The position of the drawable.
The width of the drawable.
The height of the drawable.
A segment to define the border of the drawable with.
The content of the drawable.
ellipse
ellipse() -> drawable
Creates a path drawable in the shape of an ellipse.
The x position of the ellipse.
The y position of the ellipse.
The z position of the ellipse.
The radius of the ellipse in the x axis.
The radius of the ellipse in the y axis.
The color to fill the ellipse with.
The stroke of the ellipse's path.
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.
The x position of the start of the arc.
The y position of the start of the arc.
The z position of the start of the arc.
The angle along an ellipse to start drawing the arc from.
The angle along an ellipse to stop drawing the arc at.
The radius of the arc in the x axis.
The radius of the arc in the y axis.
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.
The color to fill the arc with.
The stroke of the arc's path.