7 ms·
I’d be curious to know how one actually implements infinite canvas? I guess would you: 1. Initially set a default window size and scale the window to that? 2.
by pixel_tracing 4y ago
I’d be curious to know how one actually implements infinite canvas?
I guess would you:
1. Initially set a default window size and scale the window to that?
2. Track if the user is zooming in and out and based on the zoom factor scale all the windows contents based on that?
- agloeregrets 4y agoI get the impression that it kinda is like Minecraft: you have a 0,0 position and a scale factor. On a 1440p 100% scale display the bottom right corner would be position 2560,1440. When you zoom the position becomes 2560* scale factor by 1440 * scale factor. Then, during rendering, all size values just hit that scale factor.