shuppy (@delan) [archived]

bad apple in desmos (v1)

#Bad Apple#desmos#The Cohost Global Feed
shuppy (@delan) [archived]

we can do better

v0 (code) = 57485 polygons, one for each pixel, split into chunks of 10000 due to desmos limits. it’s pretty much unplayable in firefox, and it hangs indefinitely in chrome.

v1 (code), above = 5754 polygons, run-length encoding contiguous white pixels within a scanline. it now runs in chrome and safari, and on mobile too, but it’s still not the smoothest and sometimes firefox just gives up on playback for no apparent reason.

i think the next step is to find contiguous regions in 2d, but first, let’s make a test card (code) so we can avoid off-by-ones in time and space.