L-System Tree
Aristid Lindenmayer's L-systems (1968) grow structure by rewriting a string of symbols against a handful of production rules, then handing the result to a "turtle" that reads each symbol as a drawing command. Biology in, geometry out: the same machinery that models filamentous algae also draws a plausible tree.
This one is a dicot with opposite, decussate branching — the signature of a maple (Acer): each node throws a pair of branches on opposite sides, and every successive node is rolled 90° from the last, so the pairs cross at right angles climbing the stem. A perfectly balanced fractal doesn't read as alive, so the proportions follow the tree-modeling literature — Honda's branching model, Prusinkiewicz & Lindenmayer's Algorithmic Beauty of Plants, and Weber & Penn's tree generator — bent toward nature: the paired branches grow unequally (a near-vertical dominant limb and a wider, shorter subordinate, randomized); each child internode contracts to a fraction of its parent — the contraction ratio, the single biggest lever between a full crown and a straggly one; the trunk is a short clear bole that branches low, the decurrent habit of a maple or oak rather than a long bare pole; every limb curves back toward vertical (tropism); thickness follows the pipe model — da Vinci's rule, where a limb's cross-section ≈ the sum of everything it feeds, flaring at the base and tapering to fine twigs; and some buds never open.
axiom: A
A → ! F / [ +A ] [ -A ]
That's the seed of the idea — F draws a segment, / rolls 90° (the decussate twist), [ ] save and restore the turtle, + and − yaw the opposite pair, ! tapers — and everything above is the naturalistic elaboration layered on top.
The same engine grows a small arboretum: pick a species from the menu and the next tree you plant takes its form. The five broadleaves are the most common street trees in Boulder, Colorado's urban forest, by the city's own inventory — green ash (the dominant species, and the reason the city watches for emerald ash borer), Siberian elm, plains cottonwood, honeylocust and silver maple. Each grows by its own botany: maple and ash set their buds in opposite pairs where the others alternate in a spiral; elm's twigs lie in flat two-ranked sprays; silver maple, elm and cottonwood lose their leader early and fork into a vase of codominant stems; silver maple's outer limbs hang; and the stout-twigged ash and cottonwood branch less than the fine-twigged rest. Three conifers — Colorado blue spruce (the state tree), ponderosa pine (the foothills native) and Rocky Mountain juniper, a slow, dense little conifer the city has more of than any other juniper and which reaches about thirty feet in three centuries — switch to a second grammar entirely: a year-by-year growth simulation of an excurrent tree, with a single leader setting whorls of branches, instead of the broadleaves' decurrent forking. Three shrubs fill in beneath them — skunkbush sumac, chokecherry and mountain mahogany, the native shrubs covering the most mapped ground on Boulder's open space. They grow by the broadleaf grammar from a clump of stems instead of a trunk, new canes sprouting from the root crown as the shrub ages: sumac a low, arching mound wider than it is tall, mountain mahogany an erect, twiggy clump under six feet, chokecherry a thicket of upright stems to about thirteen. Each tree keeps its own species, so a grove can mix them.
Sized from measurements, not guesses. A tree's maturity is its age, and its height, crown width and trunk diameter at that age come from the USDA Forest Service's Urban Tree Database — growth equations fitted to street trees measured in Fort Collins, the nearest reference city — so a silver maple widens to nearly its own height while a Siberian elm stays narrow, and an 80-year-old maple carries a trunk over three feet thick. Native ponderosa beyond the urban sample follows Front Range stand data (about 90 feet at 150 years). Select a tree to read its age, height, spread and trunk.
Through the year. The season slider (it opens on today's date; ▸ runs the calendar) dresses the branches in leaves or needles, drawn in greys like the rest of the line art, so the seasons read as tone. Each broadleaf leafs out, colours and drops on its own schedule — ash and honeylocust leaf out last and drop first, silver maple flowers red before its leaves — and colour starts high on the sunny side and works inward, with each tree a few days off its neighbours, before the leaves lie under the crown into early winter. The conifers keep their needles a set number of years, so foliage sheathes only the last few annual shoots: about eight years deep on blue spruce, four on ponderosa, which leaves the pine's needles in tufts at the branch ends. New growth flushes pale in late spring (the pine's upright "candles" first), the oldest needles yellow and drop in autumn, and winter dulls the colour. Needle lifespans come from the species literature; the Front Range leaf-out and colour dates are approximate, set around the region's average spring and the species' known order.
Left-drag on the ground to plant a seed, then drag upward to grow it — a longer pull yields a taller, more-branched tree, the way a sapling matures. Plant as many as you like; click a tree to select it — the species menu and sliders then retune just that tree — and press Delete to remove it. Middle-drag orbits the camera, shift+middle pans, and the wheel zooms. The branch-angle, twist, tropism (how hard limbs reach for the light — spreading and oak-like near 0%, columnar near 100%), and randomness sliders shape the next tree you plant — or the one you've selected; set the twist to 137.5° (the golden angle) for a spiral; max depth caps how complex a fully grown tree gets, wind stirs the grove from still to a stiff breeze — gusts ripple through and limbs spring back on their own inertia, the thin twigs moving far more than the thick limbs, and no two trees catch quite the same wind — and ↻ re-rolls every tree's variation. Plain HTML5 canvas + JS with a hand-rolled 3D turtle and camera — line art and stroked foliage, light or dark to match the page.
Take it into SketchUp. The same generator is ported to a small SketchUp extension that plants these species as real-scale line geometry — lightweight edges for sketch modeling, each grown to its measured height and spread for its age (an 80-year-old plains cottonwood stands about 77′). Download the extension (.rbz, SketchUp 2019 or newer), then in SketchUp open Window → Extension Manager → Install Extension and choose the file; plant your trees from the Extensions → L-System Trees menu or its toolbar. The exact tree each click will plant is previewed under the cursor, and typing a percentage sets its maturity.
References
- Lindenmayer, A. (1968). Mathematical models for cellular interaction in development. Journal of Theoretical Biology — the original L-systems.
- Honda, H. (1971). Description of the form of trees by the parameters of the tree-like body. Journal of Theoretical Biology — branching angles and parent-to-child length ratios.
- Prusinkiewicz, P. & Lindenmayer, A. (1990). The Algorithmic Beauty of Plants, ch. 2 "Modeling of trees" — L-system tree models and the contraction-ratio "straggliness" knob.
- Weber, J. & Penn, J. (1995). Creation and Rendering of Realistic Trees, SIGGRAPH '95 — clear-trunk fraction, internode taper, branch counts.
- da Vinci's rule (the pipe model for branch thickness) — Minamino & Tateno (2014), Tree Branching: Leonardo da Vinci's Rule versus Biomechanical Models, PLoS ONE.
- Species list — the most common trees in the City of Boulder, Colorado urban tree inventory (Open Data).