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()
Applies a transform to drawables. If a single drawable is given it will be returned in a single element array</Type>.
The transformation matrix.
The drawables to transform.
apply-tags()
Adds tags to one or more drawables.
A single drawable or an array of type:drawable.
The list of tags to add to the drawable
filter-tagged
filter-tagged()
Filter out all drawables that have one of the given tags assigned.
A single drawable or an array of type:drawables.
The list of tags to use as a filter.
path
path()
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”.
line-strip
line-strip()
Construct a line-strip from a list of points
content
content()
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()
Creates a path drawable in the shape of an ellipse.
The
position of the ellipse.
The
position of the ellipse.
The
position of the ellipse.
The radius of the ellipse in the
axis.
The radius of the ellipse in the
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, )
Creates a path drawable in the shape of an arc.
The
position of the start of the arc.
The
position of the start of the arc.
The
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
axis.
The radius of the arc in the
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.