Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EstebanPiacentino opened this issue Mar 24, 2024 · 1 comment

Comments

@EstebanPiacentino
Copy link

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!

@quinton-ashley
Copy link

quinton-ashley commented Jun 22, 2024

@EstebanPiacentino This works in q5.js v2
https://q5js.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants