- /
-
Colorful Fibonacci spiral #4 Tornado Remix
on 4 Oct 2022
- 4
- 63
- 0
- 1
- 270
n=1560;
g=(1-sqrt(5))/2;
f=figure;
f.Position=[300,50,650,650];
e=axes(f);
d=.01;
a=0;
for i=1:n
%convert from polar to cartesian coordinates
x(i)=sin(a)*d;
y(i)=cos(a)*d;
d=d+.02; %increment spacing from the spacing
a=a+(2*pi)/g; %increment angle by using the golden ratio
sz(i)=.2*i+10; %increment marker sice
end
a=scatter3(e,x,y,sqrt(x.^2+y.^2).^.5,sz,sz,'filled','MarkerEdgeColor','none');
a.MarkerFaceAlpha = 0.9;
colormap(e,'prism')
axis off


