💻 Resizes the canvas to the specified width and height.
width of the canvas
height of the canvas
await Canvas(200, 100);q5.draw = function () { background(0.8);};q5.mousePressed = function () { resizeCanvas(200, 200);}; Copy
await Canvas(200, 100);q5.draw = function () { background(0.8);};q5.mousePressed = function () { resizeCanvas(200, 200);};
💻 Resizes the canvas to the specified width and height.