💻 Sets the pixel density of the canvas.
pixel density value
pixel density
await Canvas(200, 100);background(0.8);pixelDensity(1);circle(0, 0, 80); Copy
await Canvas(200, 100);background(0.8);pixelDensity(1);circle(0, 0, 80);
💻 Sets the pixel density of the canvas.