The L-Code language is an attempt to provide a language able to describe several Lindenmayer's systems.
An L-Code program look like almost any Lindenmayer's system textual representation. The following example is the Koch curve written in L-Code: This code is very similar to the Koch curve pseudo-code on Wikipedia: And finally the image generated by Lindenmayer:
Name | Value type | Description |
---|---|---|
axiom | Modules | Modules from which to begin construction |
iteration | unsigned integer | Iteration count |
distance | unsigned float | The distance that the turtle moves when 'forward' is called |
angle | float | The angle that the turtle rotates when '+' or '-' is called |