Skip to content

kvoss/lsystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lsystem

A Python module for L-systems

Example use:

>>> from lsystem import LSystem

>>> algae = LSystem(axiom='a', productions={'a':'ab', 'b':'a'})
>>> print(algae[5])
abaababaabaab

Requires Python3 or Python>=2.2

Another example is given as a script example-plant.py. Running the script

python example-plant.py

results in the following picture: plant image

About

Lindenmayer systems in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages