// SCSCC-34 "Cellular Automata" Updated.
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
a={|r|q=put(0!w=64,h=w/2,1);m=(asDigits(_,2,3)!8)[7..0];{{|n|if(q@n>0,"█"," ").post}!w;Post.nl;g=q;q=[];g={|n|c=g@@(n-1..n+1);{|n|if(m@n==c,{if(asDigits(r,2,8)@n>0,{q=q++1},{q=q++0})})}!8}!w}!h;\};fork{{|i|a.(i);Env.perc.test;1.wait}!255} // Pass the rule to function. I.e. a.(rule)
// TIL You can use the method .test on Envelopes.



