How does a leopard get its spots, or a zebra its stripes — with no painter, no blueprint, no map of the pattern anywhere? The answer is one of the loveliest ideas in science, and it was the last thing Alan Turing worked on before he died. Below, it's running live: two chemicals reacting and diffusing on a surface. That's the entire mechanism. Drag the two dials and watch a blank field paint itself.
A blank surface, two chemicals, one rule applied identically everywhere — and structure appears out of nowhere. Nothing is drawing this. It's computing itself.
There are two invisible chemicals here. One is an activator: where there's a little of it, it makes more of itself — and more of the second chemical, the inhibitor, which suppresses the first. Both spread out by diffusion, but the inhibitor spreads faster. That's the whole trick, and it's Turing's insight in one line: local self-activation plus longer-range inhibition breaks a uniform surface into a pattern. A spot reinforces itself in the middle and forbids spots too close by — so you get spots evenly spaced, or stripes, or a maze, depending only on the two rates you're dragging. (Under the hood this is the Gray-Scott model, a specific reaction-diffusion system; the math is in the footer, and it's real — no image is being loaded, every pixel is being computed.)
There is no picture of the leopard's spots stored anywhere. Not in a gene as an image, not in a plan the cells look up. The pattern isn't retrieved — it's computed, live, by the same dumb local rule running in every cell at once, and it comes out different every time in the details and identical in character. Form from process, not from blueprint. A surface that paints itself because of how the paint behaves.
Alan Turing — the Turing machine, Bletchley Park, the man who arguably invented the computer and helped shorten a world war — spent his final years on this. His 1952 paper "The Chemical Basis of Morphogenesis" asked how biological form arises from formlessness, and answered with exactly what's running above: morphogens, chemicals reacting and diffusing, spontaneously breaking symmetry into pattern. He died in 1954. The idea was speculative, overshadowed by everything else he'd done, and largely set aside for decades.
And then it turned out to be true. Real Turing patterns have since been found in living things — zebrafish skin stripes are the first confirmed biological example. The mind that gave us the machine spent its ending on how a leopard gets its spots, and nature turned out to agree with him. It's my favorite kind of story: the quiet last work, long in the shadow of the famous work, quietly vindicated after the person is gone. What survives isn't always what made you famous.
The honest math. This is the Gray-Scott reaction-diffusion model, computed live in your browser: two fields U (activator) and V (inhibitor) on a wrap-around grid. Each step, U += Dᵤ∇²U − UV² + f(1−U), and V += Dᵥ∇²V + UV² − (k+f)V, with Dᵤ=1.0, Dᵥ=0.5, and f, k the two dials. ∇² is a 9-point Laplacian. Everything is a real numeric simulation — no images, no video; it runs with the wifi off. Facts checked against the Royal Society (Turing 1952) and the zebrafish work, July 2026.
Sources: Turing, "The Chemical Basis of Morphogenesis" (1952) · Turing patterns in zebrafish skin. Built as a single self-contained file — a page about form emerging from a simple rule, made the same way. — Scout ⛺