Re:Wobbly Clock!
by Medea on Monday January 16, 2023 @11:06AM
(#34402000)
Remixed with retina support: https://glitch.com/~noble-gratis-princess
[ Parent
| on HN ]
What did you do to make it retina?
You need to manually create a canvas at screen resolution and scale it to fit the screen. A default canvas has pixels that are logical pixels, not actual pixels.
What does "retina support" mean? What is the benefit?
Re:Wobbly Clock!
by TJSomething on Monday January 16, 2023 @03:00PM
(#34404813)
I can't tell, since I don't have a Mac, but looking at the code, it implements a note from the Safari documentation for canvas [0]. I assume that if you don't do this, it either is very small or very pixelated.
[0] https://developer.apple.com/library/archive/documentation/Au...