L-Systems, originally developed by Aristid Lindenmayer, are a formalism used to generate self-similar structures. While they can produce famous fractals like the Sierpinski Triangle and the Gosper Curve, their primary purpose is to model plant growth. The algorithm is straightforward: a model is represented by a string, with the axiom representing the initial state. On each iteration, characters in the string are replaced according to reproduction rules. The visualization is created by interpreting the string as a turtle-graphic. The colors in the visualization represent different components of the model. For more information on L-Systems, refer to The Algorithmic Beauty of Plants by Przemysław Prusinkiewicz and Aristid Lindenmayer.
https://rue-a.github.io/L-Systems/