q5play
    Preparing search index...

    Function pixelDensity

    • 💻 Sets the pixel density of the canvas.

      Parameters

      • v: number

        pixel density value

      Returns number

      pixel density

      await Canvas(200, 100);
      background(0.8);
      pixelDensity(1);
      circle(0, 0, 80);