💻 Redraws the canvas n times. If no input parameter is provided, it calls the draw function once.
This is an async function.
Optional
number of times to redraw the canvas, default is 1
await Canvas(200);noLoop();q5.draw = function () { circle(frameCount * 5 - 100, 0, 80);};q5.mousePressed = function () { redraw(10);}; Copy
await Canvas(200);noLoop();q5.draw = function () { circle(frameCount * 5 - 100, 0, 80);};q5.mousePressed = function () { redraw(10);};
💻 Redraws the canvas n times. If no input parameter is provided, it calls the draw function once.
This is an async function.