Skip to content

Latest commit

 

History

History
127 lines (116 loc) · 11.6 KB

rule-sets.md

File metadata and controls

127 lines (116 loc) · 11.6 KB

The L-system Rule-sets

The rulesets can be found in the rules.json file. The majority of the rule-sets were written by Paul Bourke. I found another very nice resource on rulesets by Dmytro Fedoriaka here. When known, I have added the author as part of the data in the json file.

If you would like to learn more about L-Systems, I highly recommend Daniel Shiffman's The Nature of Code book or his Coding Challenge on L-system fractal trees.

Coding Challenge #16: L-System Fractal Trees

Important Notes

I was having an issue with the sketch freezing with certain fractal patterns, so I imposed some (somewhat arbitrary) contraints on the fractal level. I have added alerts when the level is above the maxLevel I have set for the ruleset, and it is automatically constrained at the maxLevel. Of course, the maxLevel field can be edited as desired.

The fractals start at different points on the canvas, and therefore need different translations. The images below show the L-systems with the starting point indicated by the red circle. If you switch fractals and don't see anything, it is most likely because the fractal needs to be translated in either the x or y direction.

By default, two L-systems are rendered. You can remove the second one by checking the "Remove ruleset" check-box.

🌄 Rule-set Images

ADH231a Rule-set

ADH231a Rule-set
ADH256a Rule-set

ADH256a Rule-set
Board rule-set

Board rule-set
Box Rule-set

Box Rule-set
Cross Rule-set

Cross Rule-set
Doily Rule-set

Doily Rule-set
Dragon rule-set

Dragon rule-set
Fern Rule-set

Fern Rule-set
Fern2 Rule-set

Fern2 Rule-set
Fern3 Rule-set

Fern3 Rule-set
Dragon rule-set

Hilbert rule-set
Island Rule-set

Island Rule-set
Koch curve Rule-set

Koch curve Rule-set
Koch snowflake Rule-set

Koch snowflake Rule-set
Kolam rule-set

Kolam rule-set
Leaf Rule-set

Leaf Rule-set
Levy curve Rule-set

Levy curve Rule-set
Mango leaf Rule-set

Mango leaf Rule-set
Peano-c rule-set

Peano-c rule-set
Peano Rule-set

Peano Rule-set
Pentadentrite curve Rule-set

Pentadentrite curve Rule-set
Pentigree Rule-set

Pentigree Rule-set
Pentaplexity rule-set

Pentaplexity Rule-set
Quadratic Gosper Rule-set

Quadratic Gosper Rule-set
Quadratic koch island Rule-set

Quadratic koch island Rule-set
Quadratic Snowflake Rule-set Rule-set

Quadratic Snowflake Rule-set
Recursive circles rule-set

Recursive circles Rule-set
Recursive circles 2 Rule-set

Recursive circles 2 Rule-set
Rings Rule-set

Rings Rule-set
Rounded Star Rule-set Rule-set

Rounded Star Rule-set
Skierpinski carpet rule-set

Skierpinski carpet Rule-set
Skierpinski Rule-set

Skierpinski Rule-set
Snake kolam Rule-set

Snake kolam Rule-set
Square skeirpinski Rule-set Rule-set

Square skeirpinski Rule-set Rule-set
Sticks rule-set

Sticks Rule-set
Tiles Rule-set

Tiles Rule-set
Torn Square Rule-set

Torn Square Rule-set
Tree Rule-set Rule-set

Tree Rule-set
Triangles rule-set

Triangles Rule-set