PuzzleScript icon indicating copy to clipboard operation
PuzzleScript copied to clipboard

title-screen isn't pixel-perfect-integer upscaled

Open increpare opened this issue 4 years ago • 7 comments

image

increpare avatar Feb 09 '21 19:02 increpare

window.devicePixelRatio on my pc is 1.5

https://www.html5rocks.com/en/tutorials/canvas/hidpi/ doesn't seem to fix anything - if anything it breaks it more - 'pixelate' doesn't seem to have any effect.

increpare avatar Feb 09 '21 21:02 increpare

image

increpare avatar Feb 09 '21 22:02 increpare

https://news.ycombinator.com/item?id=26655521 for future reference - not a full solution, but a partial solution

increpare avatar Apr 01 '21 02:04 increpare

note to self: check out ResizeObservers - they seem to be widely supported now.

increpare avatar Mar 04 '22 15:03 increpare

March 2022 update: checked again - pixel access in the browser is still a hellscape, just as it was in Feb 2021, just as it was in 2013.

I feel like I've partially mccolough effected myself by looking at the ycomb test code...

increpare avatar Mar 15 '22 16:03 increpare

Note to self: don't read these:

https://discourse.wicg.io/t/display-an-image-at-device-s-physical-resolution/1150/17 https://discourse.wicg.io/t/display-an-image-at-device-s-physical-resolution/1150/7

increpare avatar Apr 16 '22 09:04 increpare

https://news.ycombinator.com/item?id=26655521 for future reference - not a full solution, but a partial solution

2022 update: none of these work on my m1 macbook 😁

increpare avatar Apr 16 '22 09:04 increpare