On this page
Image & Canvas canvasCreate

$canvasCreate[]

Creates a blank canvas with the given dimensions and optional background color

Syntax
$canvasCreate[name;width;height;color?]

Canvas dimensions are clamped to a maximum of 4096 pixels in either direction. The canvas operates in a deferred rendering model: drawing operations are queued and only executed when the block is flushed — either when a non-canvas function is encountered or when $attachImage is called. Always pair $canvasCreate with a matching $attachImage to produce visible output.