Skip to main content

createCanvas

function createCanvas(width, height): HTMLCanvasElement;

Create a Canvas element with provided width and height

Parameters​

ParameterTypeDescription
widthnumbercanvas.width
heightnumbercanvas.height

Returns​

HTMLCanvasElement