⭐ Creates a canvas element, a section of the screen your program can draw on.
Run this function to start using q5!
Note that in this example, the circle is located at position [0, 0], the origin of the canvas.
Optional
width or side lengths of the canvas
height of the canvas
canvas element
await Canvas(200, 100);background('silver');circle(0, 0, 80); Copy
await Canvas(200, 100);background('silver');circle(0, 0, 80);
⭐ Creates a canvas element, a section of the screen your program can draw on.
Run this function to start using q5!
Note that in this example, the circle is located at position [0, 0], the origin of the canvas.