- /
-
Cute flower
on 24 Oct 2021
- 0
- 11
- 0
- 0
- 278
n = 4; d = 1;
k = n/d;
axis([-10 10 -10 10])
axis equal
hold on
if(mod(n,2) && d == 1)
lim = pi;
else
lim = 2*pi;
end
for r = 8:-0.1:0.1
x = r*(cos(k*(0:pi/100:d*lim)).*cos(0:pi/100:d*lim));
y = r*(cos(k*(0:pi/100:d*lim)).*sin(0:pi/100:d*lim));
fill(x,y,rand(1,3),'EdgeColor',rand(1,3))
end
axis off