Const
💻 A constant that can be passed as the third argument to Canvas to specify that the Canvas2D renderer should be used.
Canvas
Note that in this example, the circle is located at position [0, 0], the origin of the canvas.
await Canvas(200, 100, C2D);background('silver');circle(0, 0, 80); Copy
await Canvas(200, 100, C2D);background('silver');circle(0, 0, 80);
💻 A constant that can be passed as the third argument to
Canvasto specify that the Canvas2D renderer should be used.Note that in this example, the circle is located at position [0, 0], the origin of the canvas.