mattdesl / canvas-sketch

[beta] A framework for making generative artwork in JavaScript and the browser.
MIT License
5.02k stars 393 forks source link

shadowOffset not following exportPixelRatio #154

Open asbjornenge opened 2 years ago

asbjornenge commented 2 years ago

Hi there :blush:

I have a set exportPixelRatio: 10 to enable easy export of large PNGs from my sketch. I started playing around with context.shadowOffsetX/Y and noticed that with a very high exportPixelRatio as I have, the shadowOffset seems not to scale properly :thinking: Everything else scales correctly, but I end up with a very small shadow on the exports compared to what I have in the browser.

Regards, Asbjørn