Pattern formation · PDE numerics

Gray-Scott Reaction-Diffusion — Turing Patterns

Gray-Scott Reaction-Diffusion — Turing Patterns
fig. Gray-Scott Reaction-Diffusion — Turing Patterns
open full screen ↗

The notebook runs on its own once it loads, so give it about 10 seconds while Python starts up in your browser, and the simulations begin animating. Move the sliders and everything recomputes live. The code is shown alongside the output so you can read exactly how it works; the full editable source is linked below.

Two chemicals, one that activates and one that inhibits, diffusing at different rates. That is all it takes for a flat, featureless state to break into spots, stripes, and labyrinths on its own. This is Turing’s idea made concrete with the Gray-Scott equations on a grid. Sweeping the feed and kill rates walks you across the whole Pearson diagram of patterns, and watching one grow out of random noise does not stop being a little surprising.

← back to explorations