Revival of "one interesting CA-like formula"
Posted: June 22nd, 2011, 7:21 am
A year ago I posted here one new formula I haven't seen before:
viewtopic.php?f=11&t=440
Unfortunately, I was distracted away by some life events. But recently I came back to this idea and forced myself to write working implementation. Here it is for your enjoyment:
http://jsfiddle.net/prophet/CnjBy/ or http://jsfiddle.net/prophet/CnjBy/8/
This javascript implementation should run in any modern browser supporting canvas. Second link is version without typed arrays - slower but more standarts-complaint. To see evolution just hover your mouse over gray field in the right part of the screen. There is some cosmetic differences in formula from what was in the previous post. Now math inside looks like this:
s(2t,x,y) = δ1( s(2t-1,x,y) , s(2t,x,y-1) , s(2t,x-1,y-1) )
s(2t+1,x,y) = δ2( s(2t,x,y) , s(2t+1,x,y+1) , s(2t+1,x+1,y+1) )
Cells in ruleset have only two states. Field is finite tube (255x255) folded along Y axis. It is drawn on the screen with a slope for better visual impression. Starting configuration is random line at very top of the field with rest of the field filled with stable regular pattern. All this parameters should be easily tweakable in the source code which is shown on the same page.
Please tell me if you find this thing interesting - it was fun to code.
viewtopic.php?f=11&t=440
Unfortunately, I was distracted away by some life events. But recently I came back to this idea and forced myself to write working implementation. Here it is for your enjoyment:
http://jsfiddle.net/prophet/CnjBy/ or http://jsfiddle.net/prophet/CnjBy/8/
This javascript implementation should run in any modern browser supporting canvas. Second link is version without typed arrays - slower but more standarts-complaint. To see evolution just hover your mouse over gray field in the right part of the screen. There is some cosmetic differences in formula from what was in the previous post. Now math inside looks like this:
s(2t,x,y) = δ1( s(2t-1,x,y) , s(2t,x,y-1) , s(2t,x-1,y-1) )
s(2t+1,x,y) = δ2( s(2t,x,y) , s(2t+1,x,y+1) , s(2t+1,x+1,y+1) )
Cells in ruleset have only two states. Field is finite tube (255x255) folded along Y axis. It is drawn on the screen with a slope for better visual impression. Starting configuration is random line at very top of the field with rest of the field filled with stable regular pattern. All this parameters should be easily tweakable in the source code which is shown on the same page.
Please tell me if you find this thing interesting - it was fun to code.