Lindenmayer
Lindenmayer System (L-System) render.
Koch´s Curve:
iterations: 7
initialAngle: 0
rotationAngle: 60
rules:
start->F++F++F
F->F-F++F-F
Sierpinkski´s Triangle:
iterations: 9
initialAngle: 180
rotationAngle: 60
rules:
start->F
G->F+G+F
F->G-F-G
Tree 01:
iterations: 9
initialAngle: 90
rotationAngle: 25.7
rules:
start->G
G->F[-G][+G]FG
F->FF
Tree 02:
iterations: 8
initialAngle: 90
rotationAngle: 22.5
rules:
start->G
G->F+[[G]-G]-F[-FG]+G
F->FF
Author:
Gabriel Ambrósio Archanjo
Source:
Lindenmayer.java
Grammar.java
TurtleGraphics.java