The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

Show your WorkFrom the old forum

Folding Fibonacci

2 replies Last reply

  1. My wife showed me this mesmerizing animated gif of a folding and unfolding fibonacci spiral. I tried to track down the original author but was unable to do so. So I decided to whip one up myself using Nodebox.

    Network, screenshot, and animation attached.

    I sure do wish NodeBox could do recursion. Since it can't, I was forced to make each box separately. I made a subnetwork that takes in a large box and spits out the next smaller one, then hooked seven of these together. The curve subnetwork takes in this list of boxes and outputs a list of red quadratic curve segments. A simple metronome subnetwork converts the frame counter into a back and forth rotation value.

    There is surprisingly little math involved, just bits and pieces of the fibonacci sequence. The box sizes are 89, 55, 34, 21, 13, 8, 5. The rotation values for successive boxes are simply multiplied by 0, 1, 2, 3, 4, 5, 6. The quadratic curve distance values are simply divided by negative 2, 3, 5, 8, 13, 21, 34.

    For best results, set the animation to loop. Enjoy!

    John

    folding_fibonacci.mp4292 KB Download
    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply