This is a live Gray-Scott reaction-diffusion solver: two virtual chemicals, U (substrate) and V (activator), diffuse across a 256×256 periodic grid and react via ∂U/∂t = D_u∇²U − UV² + F(1−U), ∂V/∂t = D_v∇²V + UV² − (F+k)V, stepped forward every frame with a discrete 4-neighbour Laplacian. Small shifts in the feed rate F and kill rate k push the same two equations into wildly different visual regimes — spots, stripes, mazes, or self-splitting "mitosis" blobs — exactly as Alan Turing predicted for biological pattern formation in 1952.
Morphogenesis: how uniform chemical soup can spontaneously break symmetry and organise into repeating spatial patterns purely from local diffusion and reaction rules, with no external template.
Choose a preset (Spots, Stripes, Maze, Coral, Mitosis) or drag the Feed rate F, Kill rate k, Dᵤ and Dᵥ sliders directly; click or drag on the canvas to seed fresh V where you point, and use Speed and Colour map to control simulation rate and palette.
The same Gray-Scott mathematics that paints these patterns is used to model real biological structures such as animal coat markings, seashell patterns, and finger/limb formation in embryos.
F is the feed rate at which substrate U is replenished, and k is the kill rate at which product V decays; their combination determines whether the system settles into spots, stripes, a maze, or dies out to uniform.
Clicking injects a fresh patch of activator V at that location, giving the reaction-diffusion process a new local seed to grow from, which can spawn additional spots or merge into the existing pattern depending on the current (F,k) regime.
They are the diffusion coefficients for U and V — how fast each chemical spreads spatially; U normally diffuses faster than V, and the ratio between them is essential for Turing patterns to form at all.
At specific low feed/kill rate combinations the reaction-diffusion dynamics make existing spots unstable once they grow past a critical size, causing them to elongate and pinch into two daughter spots, mimicking cell division.
The Gray-Scott equations are a simplified mathematical analogue; real biological pigmentation involves more complex gene-regulatory networks, but Turing's original 1952 insight — that diffusing chemicals alone can generate stable patterns — is now supported by experiments in real developing tissue.