- /
-
Blacky!
on 6 Oct 2022
- 2
- 37
- 0
- 0
- 268
axis off
%xlim([-9 150])
f(0,0,[0,0,-1.76,0,3.58,0],[0,90,60,90,60,10],0,1)
function f(x,y,d,R,n,N)
if n<N
b(3)=0;
if n>3
b=[0,0,0];
end
X=R.*sin(d)+x;
Y=R.*cos(d)+y;
line(X,Y,X+n,color=b,LineWidth=norm(R)/20);
A=[0 -48 -25 43 31];
for i=2:5
r=rem(i,2);
L=.58+r*.07;
f(X(i),Y(i),d+A(i),L*R,n+1,7-r)
end
end
end