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


Related References