Plant Generator
Grow trees and ferns with L-systems and watch every step.
How to use the Plant Generator
- 1Start from a preset plant or write your own L-system rules.
- 2Adjust angle, iterations and growth, and watch it grow.
- 3Download the result as SVG or PNG.
About Plant Generator
The Plant Generator grows trees, ferns, bushes and seaweed from L-systems, simple rewriting rules that repeatedly replace symbols in a string, and draws the result with turtle graphics. Start from a preset, including fractal plant, binary tree, fern, bush and seaweed, or classic curves like the Koch snowflake, dragon curve, Sierpinski arrowhead and Hilbert curve, then edit the axiom and rules yourself. Rules can carry weights to pick random variants, which makes every plant a little different.
Sliders control the number of iterations, the turning angle, a random angle jitter for a natural look, how much shorter branches get per level, a wind bend that curves the tips, and the start direction. Styling covers line thickness and taper, trunk and tip colors colored by branch depth or drawing order, leaves or blossoms at the branch tips, and the background. A grow animation shows the plant being drawn step by step.
Download the plant as SVG or PNG, optionally with a transparent background, and save your settings as a JSON preset to load later. It is useful for illustrators and game developers who need procedural trees, and for teachers and students exploring fractals, recursion and the mathematics of plant growth.
Frequently asked questions
What is an L-system?
A Lindenmayer system is a set of rules that rewrites every symbol of a string at once, step after step. The biologist Aristid Lindenmayer introduced them in 1968 to describe how plants and algae grow.
What do F, +, - and the brackets mean?
F draws a line forward, f moves without drawing, + and - turn by the set angle, [ saves the current position and ] returns to it, which creates branches. Here ! makes lines thinner and | turns around.
Why does the plant stop growing at high iterations?
Each iteration can multiply the length of the string, so it grows exponentially. The generator stops before the string would exceed 250,000 symbols and tells you how many iterations it drew.
Can I save my own plant?
Yes. Save preset downloads your axiom, rules, colors and slider settings as a JSON file, which you can load again later to continue.
More in Generative Art
Turn any name into a unique identicon or pixel avatar.
Create flow fields, Voronoi patterns and circle packings from a seed.
Render big text banners or convert images into ASCII art.