Home▸Chaos & Dynamics▸Reaction-Diffusion Patterns (2D)

Reaction-Diffusion Patterns (2D): Gray–Scott Lab

A plain 2D Gray–Scott reaction-diffusion grid: tune feed rate, kill rate and the diffusion ratio between the two chemicals and watch spots, stripes, maze or coral patterns emerge from the same reaction–diffusion equations behind the 3D version, read directly off a live coverage and regime readout instead of a rotating scene.

Chaos & Dynamics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-reaction-diffusion-patterns ↗ Open standalone

This 2D companion runs the exact same Gray–Scott reaction-diffusion equations as the 3D version, but reads them off a flat grid instead of a lit, orbitable plane. Two virtual chemicals, A and B, share a 160×120 cell grid: A is fed in everywhere at rate F, the reaction A + 2B → 3B eats A wherever B is already present, B is removed at rate (F+k), and both chemicals diffuse to their neighbours every step at independent rates. Small changes to F and k push the system through a genuinely different family of steady patterns — mitosis-like splitting spots, coral growth, worming mazes or chaotic waves — while a live coverage and regime readout tells you which family you are looking at instead of leaving you to guess from the picture alone.

⚙ Under the hood

2D Gray–Scott reaction-diffusion lab: tune feed rate, kill rate and diffusion ratio to grow spots, stripes, maze or coral patterns from two reacting chemicals on a live grid, with a coverage and regime readout instead of a rendered scene.

reaction diffusiongray-scott modelturing patternspattern formationchemical kinetics

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)