ReadonlybackgroundThe background color of the canvas
ReadonlyborderThe border color for the canvas (when focused)
ReadonlyborderThe border color for the canvas (when not focused)
ReadonlydebugOptionally print debug messages to the console
ReadonlyheightThe height of the drawing area, in pixels
ReadonlykeydownEvent listener for when a key is pressed
The key that was pressed
ReadonlykeyupEvent listener for when a key is released
The key that was released
ReadonlyloopEvent listener for a the main animation loop
The number of milliseconds in between frames
An array of Drawable to render on layer 0, or void
ReadonlymousedownEvent listener for when a button on the mouse is pressed
The button that was pressed
ReadonlymousemoveEvent listener for when the mouse is moved
Cursor X-coordinate
Cursor Y-coordinate
ReadonlymouseupEvent listener for when a button on the mouse is released
The button that was released
ReadonlynumThe number of layers in this canvas
ReadonlynumThe number of audio tracks
ReadonlyparentAppends the canvas onto the parent element
ReadonlyscaleThe scale of the drawing area to the actual size of the canvas element
ReadonlyshowOptionally show or hide the mouse when hovering over the canvas
ReadonlywidthThe width of the drawing area, in pixels
Configuration Options for Canvas