Sep 15, 2024
I've implemented the Mandelbrot set several times before, but zooming manually into the Mandelbrot set on a touch screen is surprisingly delightful.
Get it from the Lua Carousel Devlog.
It takes only 20 lines of code to implement the core of the Mandelbrot set. But then it takes 20 lines to specify the palette. And 100 lines to adjust the viewport in response to touch events. And another 10 lines to render at lower precision while touches are in progress.
This does run into the limits of floating-point precision at some high level of zoom.
This post is part of my Freewheeling Apps Devlog.
Comments gratefully appreciated. Please send them to me by any method of your choice and I'll include them here.