- /
-
Party hat suitable for raves
on 4 Oct 2022
- 2
- 23
- 0
- 0
- 250
n=2000;
f=(1-sqrt(5))/2;
%fig=figure('Position',[300,50,650,650]);
a=axes();
d=0.01;
p=0;
for i=1:n
%convert from polar to cartesian coordinates
x(i)=sin(p)*d;
y(i)=cos(p)*d;
d=d+0.02; %increment spacing from the spacing
p=p+(2*pi())/f; %increment angle by using the golden ratio
sz(i)=0.25*i+10; %increment marker sice
end
scatter3(a,x,y,2000:-1:1,sz,sz,'filled','MarkerEdgeColor','k');
colormap(a,'colorcube')
a.YColor='w';
a.XColor='w';
a.ZColor='w';
a.View=[270,-20];