- /
-
Chaos game ring
on 7 Oct 2021
- 1
- 18
- 0
- 0
- 183
N=10^5;
v=zeros(N,2);
%Polygon with 11 points
a=11;
t=linspace(2*pi/a,2*pi,a);
c=[cos(t);sin(t)]';
p=[0,0];
lc=1;
for i=1:N
idx=randi(a);
s=c(idx,:);
p=p+(s-p)/1.3;
v(i,:)=p;
end
plot(v(:,1),v(:,2),'.',markersize=1)
axis off
hold off