State¶

drawBot.
save
()¶ Save the current state. This will save the state of the canvas (with all the transformations) but also the state of the colors, strokes...

drawBot.
restore
()¶ Restore from a previously saved state. This will restore the state of the canvas (with all the transformations) but also the state of colors, strokes...
Transformations¶

drawBot.
translate
(x=0, y=0)¶ Translate the canvas with a given offset.

drawBot.
rotate
(angle)¶ Rotate the canvas around the origin point with a given angle in degrees.

drawBot.
scale
(x=1, y=None)¶ Scale the canvas with a given x (horizontal scale) and y (vertical scale).
If only 1 argument is provided a proportional scale is applied.

drawBot.
skew
(angle1, angle2=0)¶ Skew the canvas with given angle1 and angle2.
If only one argument is provided a proportional skew is applied.

drawBot.
transform
((xx, xy, yx, yy, x, y))¶ Transform the canvas with a transformation matrix.