- /
-
Bee Hazard
on 12 Oct 2021
- 29
- 110
- 3
- 0
- 266
figure('Color','k','Renderer','painters')
axis equal off
r(0,0,30,1)
r(0,0,150,1)
r(0,0,270,1)
function r(x1,y1,t,d)
s=.754877666246693;
x2=x1+cosd(t)*(d);
y2=y1+sind(t)*(d);
if d>0.03
line([x1 x2],[y1 y2],'LineWi',5*d,'Color',[1,1-d*s,0]);
r(x2,y2,t+60,d*s);
r(x2,y2,t-60,d*s);
end
end