Reference width

width

A Number variable that stores the width of the canvas in pixels.

width's default value is 100. Calling createCanvas() or resizeCanvas() changes the value of width. Calling noCanvas() sets its value to 0.

Examples

This page is generated from the comments in src/core/environment.js . Please feel free to edit it and submit a pull request!

Related References