1One rule, iterated
Pick a complex number c = x + iy, one for each pixel. Start at z₀ = 0 and apply z → z² + c again and again. Squaring a complex number squares its size and doubles its angle, so the point spins and stretches. For some c the orbit stays near the origin forever: those c are the Mandelbrot set, drawn dark. For the rest it eventually runs away, and the colour says how quickly.
Move the pointer over the set (or tap) and watch the first steps of that point's orbit, drawn on the picture too. Inside the big cardioid it settles on one value; in the round bulb to its left it flips between two. Both edges are simple curves: the cardioid is c = eit/2 − e2it/4 and the bulb a circle of radius ¼ round −1, and you can draw the cardioid or the bulb in maths art.
The same feedback loop that makes this coastline also makes the weather unpredictable in chaos lab, and turns typed equations into pictures in maths art.
zn+1 = zn² + c, z0 = 0(x + iy)² = x² − y² + 2xy·ic = …