- /
-
Seaweed on Pandora
on 9 Oct 2022
- 6
- 70
- 0
- 0
- 267
rng(1);figure('color','k')
axis equal off
rotate(0,0,90,9)
rotate(0,0,90,5)
function rotate(x1,y1,t,d)
c=parula(12);
x2=x1+cosd(t)*d;
y2=y1+sind(t)*d;
if d~=0
line([x1 x2],[y1 y2],'color',c(randi(10),:),'LineWidth',2);
rotate(x2,y2,t-15,d-1);
rotate(x2,y2,t+sign(randn)*30,d-1);
end
end