File:Vogel spiral construction.webm

Uploaded by Berto
Upload date 2021-08-02T13:39:52Z
MIME type video/webm
Dimensions 360 × 360 px
File size 2.0 MB

Summary

Description
English: To construct a Vogel spiral, you start from a Fermat spiral (where the radius increases with the square root of the angle), and then sample a point every golden angle.
Date
Source https://twitter.com/j_bertolotti/status/1421047024099676163
Author Jacopo Bertolotti
Permission
(Reusing this file)
https://twitter.com/j_bertolotti/status/1030470604418428929
WEBM development
InfoField
 This diagram was created with Mathematica.

Mathematica 12.0 code

speedstep[t_] := t^2;
c = 1;
nmax = 100;
frames1 = Table[
   ParametricPlot[ c Sqrt[n] {Cos[n GoldenAngle], Sin[n GoldenAngle]}, {n, 0, nmax*speedstep[t]}, Axes -> False, PlotStyle -> LightGray, PlotRange -> {{-c Sqrt[nmax], c Sqrt[nmax]}, {-c Sqrt[nmax], c Sqrt[nmax]}}]
   , {t, 0.001, 1, 0.01}];
frames2 = Table[
   Show[ParametricPlot[c Sqrt[n] {Cos[n GoldenAngle], Sin[n GoldenAngle]}, {n, 0, nmax}, Axes -> False, PlotStyle -> LightGray],
    Graphics[{Orange, Thickness[0.007], Line[{{0, 0}, {t, 0}}]}, PlotRange -> {{-c Sqrt[nmax], c Sqrt[nmax]}, {-c Sqrt[nmax], c Sqrt[nmax]}}]
    ]
   , {t, 0.001, c Sqrt[nmax] + 0.1, 0.15}];
frames3 = Table[Show[ParametricPlot[c Sqrt[n] {Cos[n GoldenAngle], Sin[n GoldenAngle]}, {n, 0, nmax}, Axes -> False, PlotStyle -> LightGray],
    Graphics[{Orange, Thickness[0.007], Line[{{0, 0}, {c Sqrt[nmax] + 0.1, 0}}], Opacity[t],  Disk[{0, 0}, 0.3]}, PlotRange -> {{-c Sqrt[nmax], c Sqrt[nmax]}, {-c Sqrt[nmax], c Sqrt[nmax]}}]
    ]
   , {t, 0, 1, 0.1}];
sinstep[t_] := Sin[\[Pi]/2 t]^2
frames4 = Table[
   Show[ParametricPlot[c Sqrt[n] {Cos[n GoldenAngle], Sin[n GoldenAngle]}, {n, 0, nmax}, Axes -> False, PlotStyle -> LightGray],
Graphics[{Black, Disk[{0, 0}, 0.3], Orange, Thickness[0.007], Line[{{0, 0}, {c Sqrt[nmax] + 0.1, 0}}], Line[{{0, 0}, (c Sqrt[nmax] + 0.1) {Cos[GoldenAngle*sinstep[t] ], Sin[GoldenAngle*sinstep[t] ]}}], Disk[c Sqrt[sinstep[t]] {Cos[GoldenAngle*sinstep[t] ], Sin[GoldenAngle*sinstep[t] ]}, 0.3]}, PlotRange -> {{-c Sqrt[nmax], c Sqrt[nmax]}, {-c Sqrt[nmax], c Sqrt[nmax]}}]
    ]
   , {t, 0, 1, 0.02}];
frames5 = Table[Table[
    Show[ParametricPlot[c Sqrt[n] {Cos[n GoldenAngle], Sin[n GoldenAngle]}, {n, 0, nmax}, Axes -> False, PlotStyle -> LightGray],
     Graphics[{Black, Table[Disk[c Sqrt[n] {Cos[n GoldenAngle], Sin[n GoldenAngle]}, 0.3], {n, 0, t}], Orange, Thickness[0.007], Line[{{0, 0}, (UnitStep[t - 1] (c Sqrt[nmax] + 0.1)) {Cos[GoldenAngle*(t - 1) ], Sin[GoldenAngle*(t - 1) ]}}], Line[{{0, 0}, (c Sqrt[nmax] + 0.1) {Cos[GoldenAngle*t ], Sin[GoldenAngle*t ]}}], Disk[c Sqrt[t] {Cos[GoldenAngle*t ], Sin[GoldenAngle*t ]}, 0.3]
       }, PlotRange -> {{-c Sqrt[nmax], c Sqrt[nmax]}, {-c Sqrt[nmax], c Sqrt[nmax]}}]
     ]
    , {t, j, j + 1, 0.1}], {j, 1, nmax}];

ListAnimate[ Flatten@Join[frames1, Table[frames1[[-1]], 5], frames2, frames3, frames4, Table[frames4[[-1]], 2], Table[{frames5[[j]], Table[frames5[[j, -1]], 2]}, {j, 1, nmax}]]]

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

30 July 2021

2,143,301 byte

122.96 second

360 pixel

360 pixel

video/webm

39b3730e7f809ee2b6494c050175de6abefd11b2

Category:CC-Zero Category:Images with Mathematica source code Category:PNG created with Mathematica Category:Self-published work Category:Spirals Category:Uploaded with video2commons