← Back to blog

Reaction-Diffusion and Turing Patterns

Learn how Alan Turing's 1952 paper predicted animal skin patterns using reaction-diffusion math. Explore the Gray-Scott model and create Turing patterns digitally.

Organic reaction-diffusion pattern resembling animal skin spots and stripes

Alan Turing, the legendary mathematician and computer scientist, published a seemingly obscure paper in 1952 titled "The Chemical Basis of Morphogenesis." In it, he proposed a radical idea: the patterns on animal skin - leopard spots, zebra stripes, butterfly wings - could be generated by simple chemical reactions diffusing across biological tissue.

Fifty years later, biologists proved him right. And in the 2010s, digital artists discovered that his equations create stunningly beautiful patterns.

Turing's Insight

Turing observed that if two chemicals (morphogens) diffuse at different rates and react with each other, they can self-organize into complex patterns - without any external blueprint or instruction. A simple local rule repeated everywhere creates global structure.

This was revolutionary because it explained pattern formation without invoking genetic information (which, in 1952, wasn't even fully understood). The pattern emerges from chemistry alone.

The Gray-Scott Model

The most famous reaction-diffusion model is the Gray-Scott model, named for researchers John Gray and Stephen Scott (1980s). It models two chemicals: U (activator) and V (inhibitor).

The reactions are: U + 2V produces 3V (autocatalytic reaction), and V decays over time. Both chemicals diffuse spatially, but at different rates.

The key parameters are:

  • Feed rate (f): How fast new U is supplied
  • Kill rate (k): How fast V decays
  • Diffusion ratio: How much faster V diffuses than U

Change these parameters slightly, and the pattern morphs: spirals become stripes, stripes become spots, spots become labyrinths.

Why This Explains Animal Patterns

The Gray-Scott model can produce patterns resembling:

  • Leopard spots: Feed/kill rates in one range
  • Zebra stripes: Different feed/kill rates
  • Giraffe patches: Another parameter range
  • Angelfish patterns: Yet another

This isn't coincidence. During animal development, real morphogens diffuse through tissue and create patterns. The Gray-Scott model is an oversimplified version of what actually happens biologically.

Digital Art and Reaction-Diffusion

When digital artists discovered reaction-diffusion, they realized something magical: the patterns are inherently beautiful. By simulating the equations on a canvas, you get organic, flowing, biological-looking patterns that feel alive.

The process:

  1. Initialize a grid with random U and V concentrations
  2. Repeatedly apply the reaction and diffusion equations
  3. Color pixels based on current U and V values
  4. Continue for hundreds or thousands of iterations

Turing and Biology Today

Turing's 1952 prediction remained theoretical for decades. But modern biology has confirmed that real morphogens in animal development follow reaction-diffusion principles. Scientists studying zebrafish stripes and leopard spots have found evidence of Turing-like chemical systems.

It's rare for a mathematical paper to be proven correct 50 years after publication and still remain relevant. Turing's work is one of those rare achievements.

Ready to try it? Open GlitchArt Studio and experiment with this effect.

Try this effect in GlitchArt Studio 85+ effects, real-time preview, free to use
Open Editor