Loading...
Logo
Processing Forum

Recursive Drew Triangle

in Share your Work  •  1 year ago  


Me finding out why recursion is such a nice thing, and why large amounts of coding may point to an error in the way you are coding ( less is more.)  After 2 iterations of lots of code I stumbled upon  (from doodling in my sketchbook) the recursive way of doing what I wanted, and got it down to a small fraction of code that worked perfectly for me.   


The above link has an animated gif showing the different levels of recursion (along with the code.)



Replies(3)


Lovely - and now go 3D - recursive pyramide.

Do you know this:
http://www.openprocessing.org/visuals/?visualID=8326



3d was on the top of my mind, just trying to figure out how to apply the picture to it (if at all.) I guess step one is to make it 3d first, then worry about the rest :)
To save time here is one  I created earlier. Ignore the povexport stuff. Best of luck.