This sketch represents an alternative approach to iterating on a rule set, an L-system. This sketch uses ASCII characters to represent rule sets. I had a glitch that took awhile to figure out, but in the end this version uses a dictionary to store the commands.
- https://natureofcode.com/book/chapter-8-fractals/#chapter08_section6
- Coding Challenge: https://thecodingtrain.com/challenges/16-l-system-fractal-trees
Instructions
- The generate button creates a new generation and writes the instruction set out into the DOM.
- Reload the sketch to start over.