Here is a redone, fast, Fibonacci "Sunflower" script, with option to do the Fermat spiral passing through the
seed points. The spiral works with up to several thousand seeds. With unchecked spiral checkbox, a test with
100,000 seed points worked. The calculation used 2*pi*phi, avoiding dividing by 2 and then multiplying by 2,
so the seed points are very slightly different than the old script. The script uses the fast "Hilbert Curve" style of
code in the .htm file. A possible drawback is hanging up if a huge number of seeds are used.
I was unable to get the Fibonacci seeds calculated in a separate Function.
I was unable to puzzle out calculating forming the curve segments for each seed, with nested loops.
Seeds may start at any integer count, leaving a donut hole, but the spiral always starts at the origin.
- Brian
|