• Remix
  • Share
  • New Entry

  • Eugen Prel

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

on 31 Oct 2021
  • 5
  • 56
  • 0
  • 0
  • 280
n=1e4;
P=nsidedpoly(20);% Happy Birthday MATLAB!
M=P.Vertices;
r=@randi;
C='Color';
figure(C,'w');
hold
Current plot held
p=[0,0];
s=0;
for j=3:19
for i=1:n
R=r(20);
while s==R
R=r(20);
end
q=M(R,:);
s=R;
p=(p+q)/j;
F(i,:,j)=p;
end
scatter(F(:,1,j),F(:,2,j),C,'w','Marker','.','SizeData',1);
end
text(0,0,'20','Ho','c','FontW','b','FontSize',13)
axis equal off;
Image
Remix Tree
Load full remix tree