Folding Fibonacci

john's Avatar


22 May, 2016 11:34 AM

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!


  1. Support Staff 1 Posted by john on 30 May, 2016 12:16 PM

    john's Avatar

    Here is an extension of this idea: using the curl to create more elaborate displays. I call this doodle "Curling Fireball".

    NodeBox network and reduced size MP4 file attached. Loop video for best results.



  2. Support Staff 2 Posted by john on 30 May, 2016 12:26 PM

    john's Avatar

    Higher Res version of the video. For perfect resolution, download and run the NodeBox file.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • fibonacci.png 134 KB
  • folding_fibonacci.ndbx 28.1 KB
  • folding_fibonacci.mp4 292 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

19 Jun, 2024 12:57 PM
19 Jun, 2024 09:35 AM
15 Jun, 2024 01:44 PM
08 Jun, 2024 09:05 AM
08 Jun, 2024 09:00 AM