lsystems

Implementation of L-Systems


Keywords
LSystem, turtle, fractals, rewrite
License
BSD-3-Clause
Install
pip install lsystems==0.1.0

Documentation

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

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

python example-plant.py

results in the following picture: plant image