🌐 EN

🌿 L-System Fractal Generator

Draw rule-based fractal lines by repeatedly rewriting a starting pattern.

One rule per line, e.g. F=F+F--F+F. Symbols: F and G draw forward, + / - turn, [ and ] save/restore position.

4

Inputs and checks

  • Axiom (start) is the initial text. Rewrite rules contain substitutions such as F=FF; put separate rules on separate lines or separate them with semicolons.
  • Set Turn angle (degrees) between 1 and 180, and Iterations from 0 through 7. Each iteration rewrites symbols according to the rules.
  • Press Render after changing the axiom, rules or angle. Adjusting Iterations or Color also redraws the pattern.
  • F and G draw forward; + and - turn; square brackets preserve and restore the drawing position. Lowercase letters are converted to uppercase, so lowercase f cannot be used as a separate move-only instruction.

Reading the result

  • Symbols counts the expanded characters, not the number of visible line segments.
  • A pattern exceeding 1,500,000 expanded characters stops rather than producing an unlimited drawing.
  • Even when the Dragon curve preset requests more steps, rendering is limited to 7 iterations. Save PNG is available.

Examples

One F symbol before any rewriting

Input
Enter Axiom (start): F. Enter Rewrite rules: F=FF. Enter Turn angle (degrees): 90. Set Iterations to 0. Press Render.
Result
Symbols: 1 · Iterations: 0
How to check it
With zero rewrites, the starting text remains F, giving one symbol.

Doubling F seven times with a 90-degree turn setting

Input
Enter Axiom (start): F. Enter Rewrite rules: F=FF. Enter Turn angle (degrees): 90. Set Iterations to 7. Press Render.
Result
Symbols: 128 · Iterations: 7
How to check it
Each F becomes FF. Seven rounds produce 2^7 = 128 symbols, although that count is not a line-length measurement.

Frequently asked questions

What does Axiom mean?
It is simply the starting sequence that the rules rewrite.
Can I use f to move without drawing?
No. This tool converts rule text to uppercase, so f is treated as F.
Why does a larger pattern stop?
The page limits iterations to 7 and stops if expanded text grows beyond 1,500,000 characters.