Skip to content

Scaling issues with pixeldensity and background on Q5("global"); #25

@EstebanPiacentino

Description

@EstebanPiacentino

Hello!

This is related to a previously closed issue #6.

When using Q5("global") and pixelDensity(2), I still see the background unscaled.
See my code below and the output:

new Q5("global");


function setup() {
  createCanvas(700,700);
  pixelDensity(window.devicePixelRatio);
}

function draw() {
  background(100);

  fill(150,0,0);
  rect(350,350,100,100);
  
}
Captura de pantalla 2024-03-24 a las 20 10 30

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions