• Remix
  • Share
  • New Entry

on 7 Oct 2021
  • 2
  • 13
  • 0
  • 0
  • 264
x=1;
y=1;
s=0;
p=-1;
N=1e6;
X=zeros(2,N);
for i=1:N
x=x/2;
y=y/2;
if s<3
x=x+1/2;
end
if s>1 && s<4
y=y+1/2;
end
p=s;
while s==p
s=randi(4);
end
X(:,i)=[x;y];
end
[~,I]=sort(vecnorm(X));
X=X(:,I);
hold on;
for j=1:1e3:N
plot(X(1,j:j+999),X(2,j:j+999),'.',markersize=0.001,color=[j j j]/N);
end
axis equal off;
Image
Remix Tree