Pattern Formation

Reaction–Diffusion

Two chemicals, diffusing and reacting by one simple rule, spontaneously paint spots, stripes, and labyrinths — the same trick nature may use to dapple a leopard.

Pick a preset to jump to a regime — coral growth, dividing blobs, spots, mazes, or drifting waves — then nudge the feed and kill sliders to find the borders between them. Drag on the canvas to inject chemical V and watch the pattern heal around your stroke. Bright amber marks where V dominates; dark blue is the resting state.

What you're seeing

The canvas holds two invisible chemicals, U and V, one concentration value per cell. They do only two things: they diffuse — spreading into neighboring cells — and they react — V consumes U to make more of itself, while V slowly decays away. Start from a near-uniform sea of U with a few specks of V, and nothing should happen: a perfectly mixed broth has no reason to develop a pattern. Yet it does. Dots appear, grow, split, and arrange themselves into spots, worms, or a maze, then hold that texture indefinitely. No cell is told to make a spot; the spots are a property of the whole field, not of any part of it.

The rule

Each cell updates from its neighbors every tick by the Gray–Scott equations:

"Spreading out" is a Laplacian: each cell relaxes toward a weighted average of its eight neighbors, computed here as a 3×3 stencil on a grid that wraps at the edges (a torus). The reaction U·V² is autocatalytic — V helps make more V — so V behaves like a self-amplifying activator, while the feed/kill balance acts as a slower inhibitor that stops it from taking over. (Strictly, Gray–Scott is a substrate-depletion system — V eats the fed substrate U — rather than a classic activator–inhibitor pair, but it produces the same behavior.)

The key idea, due to Alan Turing, is counter-intuitive: diffusion, which we think of as the great smoother, can instead create structure. If the inhibitor diffuses faster than the activator, a small clump of activator builds itself up locally while seeding a ring of suppression around it — short-range activation, long-range inhibition. A flat, stable mixture becomes unstable to that pattern and crystallizes into evenly spaced spots or stripes. This is a Turing instability, and the wavelength it selects sets the spacing of the dots. In our model the two diffusion rates differ by exactly this kind of factor (U spreads about twice as fast as V), and the feed and kill knobs slide you across the resulting catalog of patterns.

Why it matters

Reaction–diffusion is the founding mathematical theory of biological pattern formation — morphogenesis. In 1952 Turing proposed that an embryo, starting from a nearly uniform ball of cells, could break its own symmetry through chemical "morphogens" diffusing and reacting, with no blueprint and no external guide. It was a startling claim: that the spacing of a tiger's stripes or the arrangement of a flower's parts could be a consequence of chemistry and geometry rather than a pre-drawn map. The Gray–Scott system you are watching is a particularly rich member of this family; Pearson's 1993 survey of it catalogued a whole zoo of self-replicating spots, mazes, and chaotic regimes inside a single two-parameter rule.

The deeper lesson is the same one this Atlas keeps finding: global order from local interaction. Here the surprise is sharper, because the ingredient that produces the order — diffusion — is exactly the one our intuition says should destroy it.

In the wild

Turing-type mechanisms are a leading explanation for many regular biological patterns. It is important to separate the model (two abstract chemicals on a grid) from the mechanism (specific molecules, cells, and genes), and to be honest about how firmly the two are linked:

So: the framework is real and, in a handful of systems, demonstrated down to the molecules. For many headline examples — including most "Turing pattern on an animal" claims — it remains a powerful and well-supported hypothesis rather than a settled fact. Gray–Scott itself is a toy: it teaches the idea, not the biochemistry of any particular creature.

Try this

References

  1. Turing, A. M. (1952). "The Chemical Basis of Morphogenesis." Philosophical Transactions of the Royal Society of London B, 237(641), 37–72.
  2. Gray, P. & Scott, S. K. (1984). "Autocatalytic reactions in the isothermal, continuous stirred tank reactor: Oscillations and instabilities in the system A + 2B → 3B; B → C." Chemical Engineering Science, 39(6), 1087–1097. (See also their 1983 and 1985 companion papers.)
  3. Pearson, J. E. (1993). "Complex Patterns in a Simple System." Science, 261(5118), 189–192.
  4. Murray, J. D. (2003). Mathematical Biology II: Spatial Models and Biomedical Applications (3rd ed.). Springer. (Coat-pattern and morphogenesis modeling.)
  5. Kondo, S. & Miura, T. (2010). "Reaction-Diffusion Model as a Framework for Understanding Biological Pattern Formation." Science, 329(5999), 1616–1620.