L-System visualizer made with python and turtle.
Usage:
pip install turtle
->
python l-system.py
Example: 8 iterations of Sierpinski triangle using a Sierpiński arrowhead curve L-system:
- variables : A B
- constants : + −
- start : A
- rules : (A → B−A−B), (B → A+B+A)
- angle : 60°
Output:
Example: 12 iterations of Dragon curve:
- variables : F G
- constants : + −
- start : F
- rules : (F → F+G), (G → F-G)
- angle : 90°
Output: