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

Diffusion-Limited Aggregation

Jun 6, 2026

A single particle stuck at the centre. New particles appear at a random point on the boundary and drift randomly until they touch the cluster and freeze. The only rule is adjacency — yet the structure that forms is a fractal with branching at every scale, because reaching the tips is more probable than reaching the core.

SPEED30
0 particles

Colour shifts dark→accent as cluster grows. Line seed produces flat fern-like structures.

/ NOTES
WHY IT BRANCHES

A random walker is far more likely to hit a tip than the dense interior. Tips shield the core. This creates a screening effect that drives fractal branching at every scale — the same mechanism behind zinc dendrites, lightning channels, and snowflake arms.

SEED MODES

Point seed (default): one particle at centre — produces radially symmetric dendrites. Line seed: particles stick to a horizontal line — produces a flat fern-like structure.

WHAT TO TRY

Turn speed up to max and watch the full cluster form in under a minute. Switch to Line seed mode to see flat fern growth. Notice how the fractal dimension is the same regardless of scale.