Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 966 Bytes

README.md

File metadata and controls

27 lines (24 loc) · 966 Bytes

l-system_visualizer

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: