L-systems
I wrote a Delphi program to generate L-system images. Below are some interesting results.
Dictionary
F | Move forward in the current direction |
J | Move forward in the current direction, but don't draw a line |
+ | Rotate angle step clockwise |
- | Rotate angle step counter clockwise |
| | Rotate 180° |
[ | Push current state onto the stack |
] | Pull latest pushed state from the stack |
Kolam
Author: Steven Van Hulle
Angle: 90°
Rules:
B → -AFA
Cross
Author: Steven Van Hulle
Angle: 135°
Rules:
B → FAB--BAF
Cross
Author: Steven Van Hulle
Angle: 135°
Rules:
B → +AA++AA+
Squares
Author: Steven Van Hulle
Angle: 90°
Rules:
B → -AF+F-A+
Diamond
Author: Steven Van Hulle
Angle: 90°
Rules:
B → AAB-BAA
Diamond
Author: Steven Van Hulle
Angle: 135°
Rules:
B → AFA
Dragon Curve
Author: David and Knuth, 1970 (Attr.)
Angle: 90°
Rules:
B → -FA-B
Fan-out
Author: Steven Van Hulle
Angle: 90°
Rules:
B → F+A
Carpet
Author: Steven Van Hulle
Evolution
Author: Steven Van Hulle
Fortress
Author: Steven Van Hulle
Angle: 72°
Rules:
B → AB-F-BA
Hilbert Curve
Author: David Hilbert
Angle: 90°
Rules:
B → +AF-BFB-FA+
Lace
Author: Steven Van Hulle
Angle: 135°
Rules:
B → FA++AF
Magnetic core memory
Author: Steven Van Hulle
Angle: 135°
Rules:
B → -AFA-
Bird
Author: Steven Van Hulle
Angle: 72°
Rules:
B → F+F++FA-
Peano curve
Author: Giuseppe Peano
Angle: 90°
Rules:
B → BFAFB+F+AFBFA-F-BFAFB
Peano-Gosper curve
Author: Bill Gosper
Angle: 60°
Rules:
B → -FA+BFBF++BF+FA--FA-B
A square
Author: Steven Van Hulle
Angle: 90°
Rules:
B → FFFAAAFFF
Sierpinski Triangle
Author: Waclaw Sierpinski
Angle: 120°
Rules:
B → BFB
Snowflake
Author: Steven Van Hulle
Angle: 60°
Rules:
B → +AF-A-FA+
A square
Author: Steven Van Hulle
Angle: 90°
Rules:
B → -AF+A-
A square
Author: Steven Van Hulle
Angle: 90°
Rules:
B → -AFA-
Cross
Author: Steven Van Hulle
Angle: 90°
Rules:
B → -AF+FA-
Diamond
Author: Steven Van Hulle
Angle: 135°
Rules:
B → A-FF-A
Square
Author: Steven Van Hulle
Angle: 135°
Rules:
B → -AFFA-
Triangle
Author: Steven Van Hulle
Angle: 60°
Rules:
B → +AF-B-FA+
Tessellation
Author: Steven Van Hulle
Angle: 90°
Rules:
B → FAAAAF
Triangle
Author: Steven Van Hulle
Angle: 60°
Rules:
B → +A++A+
Square
Author: Steven Van Hulle
Angle: 135°
Rules:
B → AFA
Zig-zag
Author: Steven Van Hulle
Angle: 135°
Rules:
B → AF+F-F