🌆 Creates a graphics buffer.
Graphics looping is disabled by default in q5 WebGPU. See issue #104 for details.
width
height
Optional
options
a new Q5 graphics buffer
await Canvas(200);let g = createGraphics(100);g.noLoop();g.stroke('pink');g.fill('red');g.circle(50, 50, 120);image(g, -50, -50, 100, 100); Copy
await Canvas(200);let g = createGraphics(100);g.noLoop();g.stroke('pink');g.fill('red');g.circle(50, 50, 120);image(g, -50, -50, 100, 100);
🌆 Creates a graphics buffer.
Graphics looping is disabled by default in q5 WebGPU. See issue #104 for details.