L-System Plant Growth (2D)
Interactive 2D L-system plant growth: a formal string-rewriting grammar (axiom + rules) is expanded iteration by iteration, then a turtle interpreter draws the result as branches and leaves. Choose a plant type, iteration count and branching angle.
This 2D canvas reimplements a real Lindenmayer-system grammar engine: an axiom string is rewritten iteration by iteration according to a per-species rule set, then a turtle interpreter walks the finished string to draw branches (F), turns (+/-), and stack pushes/pops ([/]) as a growing crown with leaves at every branch tip. Switch between Bush, Tree and Fern to see genuinely different grammars — not just a rescaled tree — and adjust iteration count, branching angle, segment length and growth speed to watch the string-rewriting process unfold live.
A 2D canvas L-system engine: an axiom string is rewritten by grammar rules over several iterations, then a turtle interpreter draws the result as a branching, leafy plant with a Bush, Tree or Fern preset.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install