• Remix
  • Share
  • New Entry

on 9 Oct 2021
  • 2
  • 23
  • 0
  • 0
  • 268
p=.3*pi:.8*pi:9*pi;
r=@(x)8*sin(5*x/4+5*pi/8);
hold on;
e=-.1*pi:.01:0;
f=0:.01:.101*pi;
g=[5 9 3 7 1 5];
h=[8 2 6 10 4 8];
for j=1:9
[X,Y]=pol2cart(2*pi*rand,9*rand);
for k=1:5
b=[p(g(k))+f,p(g(k+1))+e;p(h(k))+f,p(h(k+1))+e];
[x,y]=pol2cart(b,r(b));
fill(x'+X,y'+Y,'r');
end
end
axis off equal
Remix Tree