Pablo Armando Rodríguez Codes

AI programmer

L-systems

This was a project developed for the Mathematics & Graphics course (MScCGE at Goldsmiths, University of London), and it shows an implementation of L-systems, which are used for generating tree-like structures.

L-systems consist of a generative grammar that produces a string which is then processed using turtle-graphics to generate the resulting graphical structure.

Example of a tree-like structure generated with the application
Example of a tree-like structure generated with the application

The application allows the user to tweak several parameters to alter the generated structure. It is also possible to give a random factor to the generation, which produces more realistic results.

L-systems are also capable of generating other self-similar fractal structures, such as the Sierpinksy triangle (left) and the Dragon curve (right).

Sierpinski triangle
Dragon curve