• Remix
  • Share
  • New Entry

on 28 Oct 2021
  • 1
  • 34
  • 0
  • 0
  • 205
f=@(k,p)2+floor(k*p)-floor((k+1)*p);
x=0;
y=0;
X=0;
Y=1;
gca;
hold on;
axis equal off;
for k = 1:1595
l=f(k,(1+sqrt(5))/2);
a=atan2d(Y-y,X-x);
a=a-(l==0)*90*sign(mod(k,2)-.5);
x=X;
y=Y;
X=x+cosd(a);
Y=y+sind(a);
plot([x X],[y Y],'k');
end
Remix Tree