Skip to main content

canvas

canvas() -> content 

Sets up a canvas for drawing on.

length:

Default: 1cm

Used to specify what 1 coordinate unit is. If given a ratio, that ratio is relative to the containing elements width!

body:

A code block in which functions from the draw module have been called.

background:

Default: none

A color to be used for the background of the canvas.

debug:

Default: false

Shows the bounding boxes of each element when true.