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

scaleBrushes() #24

Closed
kala0606 opened this issue Feb 15, 2024 · 2 comments
Closed

scaleBrushes() #24

kala0606 opened this issue Feb 15, 2024 · 2 comments

Comments

@kala0606
Copy link

Also the brush.scaleBrushes() doesn't seem to scale accurately. If that's a known issue then I will sit tight else here is a small demo test that i made https://editor.p5js.org/ujjwalagarwal/sketches/VaBAeB0wO

if you resize the window which changes innerWidth and innerHeight, the render is different.

Also i think the fill scales properly, it's the hatch and probably stroke thats an issue.

download - 2024-02-15T221801 600
download (100)

@acamposuribe
Copy link
Owner

@kala0606
Yes, that's right. It's how the library works. I can remove this behaviour, but I'd really suggest to avoid resizing the canvas if possible, because many other things can break.
My suggestion would be to use css resize, rather than canvas resize.

@kala0606
Copy link
Author

Got it. Thank you so much.

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