You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Essentially, you render it in the canvas at double resolution (using a transform, double the size of the document element) and scale the document element down to the desired size.
Impressive work! However, it looks blurry on a 4k screen. I think this may be related to #14 and could resolve it.
https://www.html5rocks.com/en/tutorials/canvas/hidpi/
I had this issue with software I was working, and this is the simplest solution I ended up using.
Essentially, you render it in the canvas at double resolution (using a transform, double the size of the document element) and scale the document element down to the desired size.
Or even easier, you can just include a polyfill like this one:
https://github.com/jondavidjohn/hidpi-canvas-polyfill
The text was updated successfully, but these errors were encountered: