All experiments
04SimulationGenerative
Reaction–Diffusion
A Gray–Scott simulation running on the GPU. Seed it with the brush and watch spots, worms and corals organise themselves.
Two chemicals, one endless pattern.
Loading experiment…
What you are looking at
The Gray–Scott model tracks two chemicals that react and diffuse at different rates. Chemical A is fed in, chemical B is removed, and B catalyses the conversion of A into more B. Nothing in the rules mentions spots, stripes or worms — those are emergent. The same equations explain pigmentation patterns on fish and the ridges of a brain coral. Small changes to the feed and kill rates switch the whole system from one pattern family to another.
How to play
- 01Choose a preset, then let it run. It usually needs a few seconds to find its pattern.
- 02Paint with the pointer to inject chemical B. Every stroke becomes a new colony.
- 03Nudge feed and kill together. The interesting behaviour lives on a narrow ridge between uniform grey and noise.