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

[Bug]: Rectangle outlines look weird on Windows #34

Closed
bernhardfritz opened this issue Nov 20, 2022 · 1 comment
Closed

[Bug]: Rectangle outlines look weird on Windows #34

bernhardfritz opened this issue Nov 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@bernhardfritz
Copy link
Owner

What went wrong?

As reported by iddq_tea on discord https://discord.com/channels/959169147550445598/1024607056239525899/1042568512411009054, rectangle outlines look weird on Windows with default strokeWeight and with smoothing active.

image

image

Maybe might have something to do with pixel density?

Expected behavior

Outlines start to look better with strokeWeight(2):
image

Or with smoothing deactivated:
image

Steps to reproduce

noSmooth();
noFill();
stroke(255, 255, 0);
rect(32, 32, 16, 16);
@bernhardfritz bernhardfritz added the bug Something isn't working label Nov 20, 2022
bernhardfritz added a commit that referenced this issue Feb 8, 2023
* apply a black CSS background to p8g.js canvas by default #28
* ensure predictable rasterization #34
bernhardfritz added a commit that referenced this issue Feb 8, 2023
* apply a black CSS background to p8g.js canvas by default #28
* ensure predictable rasterization #34
@bernhardfritz
Copy link
Owner Author

fixed in p8g 0.8.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant