Turing Pattern Playground
Explore how simple reaction–diffusion rules can spontaneously generate spots, stripes, and spirals. This simulator uses the Gray–Scott model as a concrete example of Turing instability.
Simulation
Gray–Scott reaction–diffusionDark regions represent low concentration, bright regions high concentration. Use the controls to the right to change diffusion and reaction parameters.
Tip: click on the canvas at any time to "add" a patch of v and watch new structures emerge.
Model parameters
Gray–Scott equationsThe Gray–Scott model tracks two chemicals, an activator u and an inhibitor v:
∂u/∂t = Du·∇²u − u·v² + F·(1 − u) ∂v/∂t = Dv·∇²v + u·v² − (F + k)·v
Diffusion
Turing patterns typically require the inhibitor to diffuse faster than the activator: Dv > Du.
Reaction / feed
For explicit Euler updates, stability typically requires dt ≤ 1 / (4·max(Du, Dv)) (with grid step = 1).
Pattern presets
Gray–Scott classicsEach preset sets F and k. Diffusion coefficients are left as-is so you can experiment with the ratio Dv / Du.
After choosing a preset, hit Reset to restart from a fresh initial condition. Then perturb the pattern by clicking in different regions.
What to look for
- Start from an almost uniform state; small random fluctuations are enough to break symmetry.
- Increase Dv while keeping Du fixed. Patterns sharpen as inhibition becomes longer-ranged.
- Vary F (feed) and k (kill). Small changes can switch between isolated spots, labyrinthine stripes, and chaotic turbulence.
- Notice how diffusion, which usually smooths things out, here creates structure when coupled to nonlinear reactions.