Skip to content

mapapin/L_system_visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

L-System

L-System is a very interesting algorithm that consist of modify an axiom string by simple rules. The more the algorithm is repeated the more complex the structure becomes. The algorithm can be very slow with many repetitions, that's why i decide to set a maxDepth in json files.

Check out the wiki page or /config folder to see some examples and try making your own :)

To be sure that all requirements is downloaded, please do : pip3 install -r requirements.txt

To launch one exemple : python3 LSystem.py configs/dragonCurve.json

Some screens

If you want making your json file, please follow this structure :

{
    "width" : int,
    "height" : int,
    "x" : int,
    "y" : int,
    "size" : int,
    "angle" : int,
    "axiom" : string,
    "rules":
    {
        char : string,
        char : string
    },
    "maxDepth" : int
}

About

Simple Visualizer for L-System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages