go=function(){nW=[];for(var y=0;y<sy;y++){nW[y]=[];for(var x=0;x<sx;x++){if(d&&Math.abs(((de.pageX-10)/sz)-x)<dt&&Math.abs(((de.pageY-10)/sz)-y)<dt){nW[y][x]=Math.round(Math.random()-0.25)}else{var m=(sx+x-1)%sx,n=(x+1)%sx,b=(sy+y-1)%sy,v=(y+1)%sy,z=W[b][m]+W[b][x]+W[b][n]+W[y][m]+W[y][n]+W[v][m]+W[v][x]+W[v][n];nW[y][x]=W[y][x]===1?z===3||z===2?1:0:z===3?1:0}}}d=false;var r=(cxt.createImageData)?cxt.createImageData(sx,sy):cxt.getImageData(0,0,sx,sy);for(var y=0;y<sy;y++){for(var x=0;x<sx;x++){r.data[((y*(sx*4))+(x*4))+3]=nW[y][x]===1?255:0}}cxt.putImageData(r,0,0);W=nW;window.setTimeout('go()',10)};document.body.innerHTML+='<br/>Click the box to bring forth life';var c=document.getElementById('c'),cxt=c.getContext('2d'),sx=300,sy=150,sz=4,W=[],g=c.style,d=false;de=null;dt=5;g.width=(sx*sz)+'px';g.height=(sy*sz)+'px';g.border='1px solid #000';c.addEventListener('click',function(e){d=true;de=e},false);for(y=0;y<sy;y++){W[y]=[];for(x=0;x<sx;x++){W[y][x]=0}}go();
Z289ZnVuY3Rpb24oKXtuVz1bXTtmb3IodmFyIHk9MDt5PHN5O3krKyl7bldbeV09W107Zm9yKHZhciB4PTA7eDxzeDt4Kyspe2lmKGQmJk1hdGguYWJzKCgoZGUucGFnZVgtMTApL3N6KS14KTxkdCYmTWF0aC5hYnMoKChkZS5wYWdlWS0xMCkvc3opLXkpPGR0KXtuV1t5XVt4XT1NYXRoLnJvdW5kKE1hdGgucmFuZG9tKCktMC4yNSl9ZWxzZXt2YXIgbT0oc3greC0xKSVzeCxuPSh4KzEpJXN4LGI9KHN5K3ktMSklc3ksdj0oeSsxKSVzeSx6PVdbYl1bbV0rV1tiXVt4XStXW2JdW25dK1dbeV1bbV0rV1t5XVtuXStXW3ZdW21dK1dbdl1beF0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