Sign In

$createCanvas[]

Creates a new canvas

New v1.3.1+ Requires Brackets

Usage

$createCanvas[;;;]
Also callable as
$newCanvas $canvas

Arguments

NameTypeRequiredDescription
name
StringYesThe name of the canvas
width
NumberYesThe width of the canvas
height
NumberYesThe height of the canvas
...code
UnknownNoExecutes code with this canvas as current (empty name)

Was this page helpful?