XAVIER FABLE ×70
Coral· f 0.0545k 0.0620
N°37 · GRAY–SCOTT REACTION–DIFFUSION · LIVE WEBGL2 · PING-PONG FBO

MORPHOGEN

patterns that grow themselves

Two chemicals. Two rules. A digital tissue that decides its own structure — coral, leopard spots, fingerprints, labyrinths, dividing cells — from feed and kill alone. Reach in and seed it.

click + drag anywhere to paint life
the biology, below
Phase map · f→ · k↑
Feed & Kill
Feed0.0545
Kill0.0620
Palette
Alan Turing · 1952

The chemistry of a leopard, written as two equations.

In his last great paper, The Chemical Basis of Morphogenesis, Turing proposed that the spots, stripes and whorls of living things need no blueprint. They fall out — inevitably — of two substances diffusing and reacting across a sheet of cells. He called them morphogens: shape-makers.

Picture two chemicals soaking through a tissue. One is an activator — where it gathers, it makes more of itself, and more of the second. The second is an inhibitor that spreads faster and shuts the first one down. Local runaway, long-range restraint.

That single tension — promote nearby, suppress at a distance — is enough. A flawlessly even field becomes unstable to its own noise, and out of the flatness a wavelength is chosen. Peaks and troughs lock into place at a spacing set by the rates of diffusion.

This lab runs the Gray–Scott variant of Turing's idea on the GPU. Every pixel holds two numbers, u and v. Each frame they diffuse into their neighbours and react — u feeds the growth of v, and v is quietly removed. Two dials govern everything.

Feed replenishes u everywhere; kill drains v. Nudge them a few thousandths and the whole tissue changes its mind — coral becomes maze becomes drifting spots becomes cells that split and split again. Nothing is drawn. It is all just chemistry finding balance.

The two rules, per cell, per tick ∂u/∂t = Du∇²u − uv² + f(1−u)
∂v/∂t = Dv∇²v + uv² − (f+k)v

A pattern is not painted onto the animal. It is the animal, working out where it is.

after A. M. Turing — The Chemical Basis of Morphogenesis, 1952

This tissue is grown live and needs WebGL2 with float render targets — which your browser did not offer. Try a current desktop browser and let it bloom again.