How the patterns form
The Gray–Scott model couples two dimensionless chemical fields, A and B. A feeds the reaction A + 2B → 3B; B is removed, while both substances diffuse. A spreads twice as quickly as B here. Local feedback and spreading can turn a few chemical patches into complex patterns.
∂A/∂t = DA ∇²A − AB² + f(1 − A)
∂B/∂t = DB ∇²B + AB² − (f + k)B
This explorer uses a periodic grid: a pattern leaving one edge continues from the opposite edge. Each step uses a nine-point diffusion stencil, DA = 1, DB = 0.5 and Δt = 1. Every preset starts with sparse chemical seeds, with no hidden fast-forward: you can watch colonies grow and meet at a consistent playback speed. This is a mathematical pattern model, not a prediction of a particular real chemical experiment.
Fixed chemistry follows the equations above. Renewing growth adds a local external supply: over 120 simulation steps, a soft circular patch is replenished with A around a small B seed. Renewal starts at step 3,600 and repeats every 1,800 steps, creating room for new growth without restarting the whole field. Feed and removal rates stay fixed; changing playback speed changes how quickly both the chemistry and renewal unfold.
Try changing one thing
Start with Coral labyrinth, pause it, and draw across a channel. Resume to see the disturbance heal or branch. Then try Dividing cells and watch the dots elongate. Changing the feed and removal rates explores different regimes; changing the palette only changes how you see them.
Explore the model and its pattern catalogue in the MIT Gray–Scott reaction–diffusion demonstration, based on John Pearson’s study of complex patterns in a simple system.