Just like the previous sketches, but now the tree is an object and only has to do computations on an event call.
- https://natureofcode.com/book/chapter-8-fractals/#chapter08_section5
- Coding Challenge: https://www.youtube.com/watch?v=fcdNSZ9IzJM
Instructions
- Press the "t" ket to have tree build next level. The levels are only built upon user request.
- Tree will build new levels until the branch gets too short and then it will add a leaf.
- Reload the sketch to get a new tree.