SARATH THARAYILST
WRITEUPSCONCEPTSPROJECTSLABABOUT
SARATH THARAYIL
മ
IGARATIPO: AMAZON TRIBUTARIES
/ SYSTEM

Building thoughtful software, writing notes, and shipping experiments across data, AI, and the web.

No cookies, no tracking. Preferences are stored locally in your browser. Anonymous view counts are kept server-side.

Hey, there's a story for the river above/© 2026 Sarath Tharayil/IST --:--:--
← LAB

Gray-Scott Reaction-Diffusion

Jun 6, 2026

Two virtual chemicals — U and V — diffuse through a grid at different rates. V is autocatalytic: wherever V exists it converts U into more V. Feed rate f replenishes U; kill rate k removes V. Adjust these two numbers and the system settles into spots, mazes, coral branches, or travelling wave fronts.

PRESET

Click or drag to inject V chemical. Switch presets mid-run to see the pattern adapt.

/ NOTES
HOW IT WORKS

Each cell runs the reaction U + 2V → 3V every step. U diffuses quickly and is replenished from outside at rate f. V diffuses slowly and is removed at rate k. The competition between production and removal creates stationary or moving patterns.

PRESETS
SpotsIsolated circular blobs that repel each other and stay separated.
CoralBranching, coral-like structures growing outward.
MazeLabyrinthine stripes. Familiar but never repeating.
MitosisSpots that slowly grow and split like dividing cells.
WavesTravelling chemical wave fronts that propagate and annihilate on collision.
WHAT TO TRY

Click or drag on the canvas to inject V at that location and seed new patterns. Switch presets mid-run to see the existing structure adapt. Mitosis evolves slowly — give it at least 30 seconds.