💻 Returns the current display density.
On most modern displays, this value will be 2 or 3.
display density
await Canvas(200, 100);background(0.8);textSize(64);text(displayDensity(), -90, 6); Copy
await Canvas(200, 100);background(0.8);textSize(64);text(displayDensity(), -90, 6);
💻 Returns the current display density.
On most modern displays, this value will be 2 or 3.