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

L-Systems

Jun 6, 2026

Aristid Lindenmayer invented this formalism in 1968 to describe cell division. A short string is rewritten by rules — F→FF+[+F-F-F]-[-F+F+F] — and interpreted by a turtle that draws as it reads. A few iterations of expansion produce complex organic geometry from almost nothing.

ITER4
ANGLE25°

String length: 0 chars. Capped at 200k.

/ NOTES
ALPHABET

F — draw forward   + — turn left   − — turn right   [ — push state   ] — pop state

PRESETS
TreeClassic binary fractal tree.
KochKoch snowflake — infinite perimeter, finite area.
SierpinskiSierpinski triangle via string rewriting.
DragonDragon curve: a folded infinite paper strip.
FernBarnsley-like fern with bracketed branching.
WHAT TO TRY

Increase iterations one step at a time and watch the string length explode. Adjust the angle to deform the plant. Edit the rule string directly to invent your own grammar.