Skip to content

kujuh3/l-system_visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

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:

About

L-System visualizer made with python and turtle.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages