tag:support.nodebox.net,2012-11-01:/discussions/show-your-work/148-folding-fibonacciNodeBox: Discussion 2017-09-08T07:42:14Ztag:support.nodebox.net,2012-11-01:Comment/399389302016-05-22T11:34:21Z2016-05-22T11:34:21ZFolding Fibonacci<div><p>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.</p>
<p>Network, screenshot, and animation attached.</p>
<p>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.</p>
<p>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.</p>
<p>For best results, set the animation to loop. Enjoy!</p>
<p>John</p></div>johntag:support.nodebox.net,2012-11-01:Comment/399389302016-05-30T12:16:33Z2016-05-30T12:16:33ZFolding Fibonacci<div><p>Here is an extension of this idea: using the curl to create more
elaborate displays. I call this doodle "Curling Fireball".</p>
<p>NodeBox network and reduced size MP4 file attached. Loop video
for best results.</p>
<p>Enjoy!</p>
<p>John</p></div>johntag:support.nodebox.net,2012-11-01:Comment/399389302016-05-30T12:26:02Z2016-05-30T12:26:02ZFolding Fibonacci<div><p>Higher Res version of the video. For perfect resolution,
download and run the NodeBox file.</p></div>john