Log In  


Cart #diruwopusa-0 | 2020-10-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

My first tweetcart! All the 1D 3-neighbour cellular automata in 194 characters :)

The 1D cellular automata are a simply family of rules that are applied a row at a time in the tweetcart - there are 2^2^3=256 possible rules, and some make very cool fractal non-repeating patterns ... I love that such complexity can emerge from such simple rules - hope you enjoy!

Wikipedia article of relevance

cls()w=flr(rnd()*256)c=7+w%8p=pget
?w,60,1,c-1
for t=5,128do for x=0,127do
l=p(x-1,t)>1and 4or 0u=p(x,t)>1and 2or 0r=p(x+1,t)>1and 1or 0if(band(w,shl(1,l+u+r))>0)pset(x,t+1,c)end
flip()end
run()
5


1

Cart #zehiponewi-0 | 2020-11-01 | Code ▽ | Embed ▽ | No License
1

IN THIS VERSION

  • Press X to skip to a new random automaton
  • Automata are coloured according to age (:

Hope you like!
(It doesn't fit in 280 chars any more, meh)



[Please log in to post a comment]