L-Systems
One common feature in L-systems is the square bracket: [ ]. This symbol adds the ability to remember a place and return to it. For example, if we want to go:
forward, save position, left and forward, return to saved position, forward |
The directions can be written as:
And the picture produced would look like:
This makes it easy to make plant-like structures.
Another useful feature of L-systems is you can have multiple rules. This means that each iteration, all the rules are simultaneously implemented. Here is an example L-system with multiple rules:
Go back to part 1
