Folding Fibonacci

john's Avatar

john

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!

John

  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.

    Enjoy!

    John

  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

Generic

? 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

06 Sep, 2023 07:20 AM
05 Sep, 2023 08:40 PM
30 Aug, 2023 03:16 AM
19 Aug, 2023 03:22 AM
29 Jul, 2023 05:52 AM

 

28 Jul, 2023 10:53 PM
23 Jul, 2023 07:04 AM
14 Jul, 2023 03:05 AM
07 Jul, 2023 06:26 AM
05 Jul, 2023 11:44 PM
30 Jun, 2023 12:48 PM