4 ms·
Remixed with retina support: https://glitch.com/~noble-gratis-princess https://glitch.com/~noble-gratis-princess
by Medea 4y ago
Remixed with retina support: https://glitch.com/~noble-gratis-princess https://glitch.com/~noble-gratis-princess
- Kiro 4y agoWhat did you do to make it retina?
- larschdk 4y agoYou 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.
- jonas-w 4y agoWhat does "retina support" mean? What is the benefit?
- archon810 4y agoIt certainly looks much less blurry on my Pixel 7 Pro with this version.
- TJSomething 4y agoI 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/AudioVideo/Conceptual/HTML-canvas-guide/SettingUptheCanvas/SettingUptheCanvas.html#//apple_ref/doc/uid/TP40010542-CH2-SW8 https://developer.apple.com/library/archive/documentation/Au...