promptsandmore.com

Click. Tweak. Observe. Understand.

Growth & Natural Forms

L-systems, Phyllotaxis, and procedural plant generation

System Overview

L-systems (Lindenmayer systems) model biological growth through string rewriting. Starting with an axiom, rules recursively replace symbols to generate complex branching structures. Each iteration adds detail, creating fractal-like natural forms.

Phyllotaxis describes the spiral arrangement of leaves, seeds, or petals. The golden angle (137.5°) creates optimal packing, seen in sunflowers, pinecones, and many plants. This pattern emerges from simple mathematical rules.

Why Games Use This

Key Parameters

Failure Modes

Scaling Behavior

L-system string length grows exponentially with iterations. 5 iterations can produce strings with millions of characters. Limit iterations to 3-5 for real-time rendering. Use stochastic rules carefully as they prevent caching.

Phyllotaxis is O(n) for n points, making it very efficient. Can generate thousands of points in real-time.

Related Algorithms

Free Tools & Libraries

System-Thinking Prompts