• Remix
  • Share
  • New Entry

  • Eugen Prel

  • /
  • Chaos game inside a regular hexadecagon with mixed rules superimposed

on 31 Oct 2021
  • 5
  • 39
  • 1
  • 0
  • 272
n=1e4;
P=nsidedpoly(16);
M=P.Vertices;
r=@randi;
figure('Color','#787D7F');
hold on;
F=zeros(n,2,5);
p=[0,0];
s=0;
for j=5:15
for i=1:n
R=r(16);
while s==R
R=r(16);
end
q=M(R,:);
s=R;
p=(p+q)/j;
F(i,:,j)=p;
end
plot(F(:,1,j),F(:,2,j),'Col',[1,1,1,.022],'LineS','-','Marker','.','MarkerS',1);
end
axis equal off;
Image
Remix Tree
Load full remix tree