borntofrappe / the-nature-of-code

Recreate some of the examples from the book [The Nature of Code](https://natureofcode.com/book/) with Lua and Love2D.
4 stars 0 forks source link

L-system, rules and turtles #2

Closed borntofrappe closed 3 years ago

borntofrappe commented 3 years ago

As prefaced in issue #1, the section from chapter 8 devoted to the L-system needs to be updated. The theory is rather clear, but the code is not.

borntofrappe commented 3 years ago

Good news 🎊

I was able to update the demos in the L-system folder and actually recreate the proposed examples. (screen captures follow)

Turtle Tree Turtle Triangle Turtle Fractal

Special mention to the demo Sierpinski triangle, which had a missing character in one of the rules

 ["F"] = "F--F--F--G",
+["F"] = "F--F--F--GG",