6th January 2024 at 09:09

For today’s genuary prompt of Screen Saver, I recreated the vintage mac screen saver that I must have stared at so many times during high school.

The fun trick here is that I don’t use state track the lines, it’s a purely functional implementation that each tick works out the next line from scratch based on a triangle wave, and so I can just replay time minus 50 in black to tidy up. No state needed no matter how long the trail, which is quite neat.

This relates back to what Jonathan Hogg said about the joy of purely functional effects which I quoted in my TCC write up.