← All animations

🌀 The Mandelbrot Set

One short rule — z → z² + c — repeated over and over for every point on the plane. Some points stay forever close to home; others race off to infinity. Colour each point by which fate befalls it and an endlessly intricate shape appears, its boundary crinkled at every scale. Zoom in as far as you like and new spirals, seahorses and tiny copies of the whole set keep emerging. Scroll through to explore it, watch the escaping orbits, and see why so simple a rule makes such infinite complexity.

1. Zoom in — infinite detail from one rule

Click to zoom in on a point, or drag a box to zoom to exactly that region. Each pixel is a complex number c; we iterate z → z² + c from z = 0 and colour by how many steps it takes to escape (black = never escapes, i.e. in the set). Crank up the iteration slider as you go deeper to keep the boundary sharp.

200 iters zoom 1× c ≈ −0.50 + 0.00i

2. The escape test — watch an orbit live

Pick a point c on the map and we trace its orbit: start at z = 0, then z = z² + c, again and again. If the orbit stays trapped inside the circle of radius 2 forever, c is in the set. If z ever flies past radius 2 it's doomed to shoot off to infinity — and how quickly it escapes is exactly the colour we paint it. Click anywhere on the map to drop a new point.

c = −0.10 + 0.65i tracing…

3. The whole idea, in plain words

The rule

Pick a complex number c (a point on the 2-D plane, its left–right position the real part and its up–down position the imaginary part). Start with z = 0 and repeat one step forever:

z → z² + c

Squaring a complex number squares its distance from the origin and doubles its angle, then we add c and feed the result back in. That single feedback loop is the entire program.

What "in the set" means

For some choices of c the sequence stays bounded — it may settle, cycle, or wander, but it never runs away. Those c values make up the Mandelbrot set (drawn black). For every other c the numbers eventually blow up to infinity; in fact once |z| passes 2 escape is guaranteed, so we can stop early. The colours outside the black region count how many steps it took to cross that line — a contour map of escape speed.

Why a simple rule makes infinite complexity

Nothing in z → z² + c tells the shape to grow spirals or buds, yet the boundary between "stays" and "escapes" is infinitely intricate: it is a fractal, crinkled at every magnification. Zoom into scene 1 and you find filaments, spiral arms, and miniature copies of the whole set hiding inside itself, without end. The complexity isn't written into the rule — it emerges from iterating something tiny an enormous number of times. Simple rule, infinite picture.