Draw fractals using L-system - Dailyprogrammer (original) (raw)
A easy way to draw fractals is to produce a string using an L-system and to interpret each symbol in the string as a drawing operation, thus usingturtle graphics. For an interesting description of L-systems and their brief history see Chapter 1 of The algorithmic beauty of plants. Here are some examples of fractals:
- Koch curve
- Sierpinski triangle
- A plant
- Another plant
- Dragon curve
- Hexagonal Gosper curve