- /
-
Paintball
on 12 Oct 2021
- 12
- 98
- 0
- 0
- 280
figure('Color','k','Renderer','painters')
axis equal off
r(0,0,45,1)
r(1,3,225,1)
function r(x1,y1,t,d)
s=2/3;
x2=x1+cosd(t)*(d+1);
y2=y1+sind(t)*(d+1);
if d>0.05
r(x2,y2,t+90,d*s);
r(x2,y2,t+25+20*rand,d*s);
line(x2,y2,"Marker",".","MarkerS",rand*35+6-6*d,"Color",sin(2*pi*rand(1,3))/2+.5);
end
end