Recursive Random Tree 3d lines

Inspired by Luiz André Gama 's basic recursive tree I wanted to find a way to build a 3d tree.

Think I just about nailed it! Click a mouse to build branches. Everytime you run it it should build a different tree.

Any idea how I can build in a reset function with a key press?

Kudos to Magneson for the fractal tutorial.

Composition and supporting files: 

Subscribe to RSS - L-system