← back to CV $ python lsystem.py --interactive

L-System Plant Generator 🌿

Algorithmically generated plants using formal grammars (Lindenmayer systems). Tweak the angle, iterations or the formula itself and watch the plant grow in real time. Pure canvas + JavaScript, no libraries.

// concept seen on @santifiorino.py · my own implementation

segments drawn: 0

formula (grammar)

G = (V, ω, P)
V = {F, X, +, −, [, ], >}

parameters