- /
-
Sawanna
on 11 Oct 2021
- 3
- 112
- 7
- 0
- 263
figure('color','k')
% figure('Color','#02021b','Renderer','painters')
axis equal off
rng(2)
rotate(0,0,90,18)
function rotate(x1,y1,t,d)
d=d*(1+rand/10);
x2=x1+cosd(t)*(d^1.5+5);
y2=y1+sind(t)*(d^1.5+5);
if d>=0
line([x1 x2],[y1 y2],'LineWidth',d/2);
rotate(x2,y2,t-10-5*rand,d-rand-1.5);
rotate(x2,y2,t+20+rand,d-rand-1.6);
end
end