Fractals

I used processing js to create a fractal tree based on the concept of Recursion.

Link to my code: https://github.com/poeToaster/processingJS

Recursion: Take a single line and break it into two. Then return to those two lines and apply the same rule, breaking each line into two, and now we’re left with four. Then return to those four lines and apply the rule. Now you’ve got eight. This process is known as recursion 

 

Koch Flake:

 

 

 

Leave a comment