- /
-
Cellular automaton, rule 90
on 29 Oct 2021
- 0
- 44
- 0
- 0
- 137
N=bitget(90,1:8);
D=255;
A=zeros(D,2*D);
A(1,D)=1;
for n=1:D-1
for m=2:(2*D-1)
A(n+1,m)=N(A(n,[m-1 m m+1])*[4 2 1]'+1);
end
end
imshow(A);
axis off equal;