_='G{s,s,@,m,r}=Math;J rgb(lGrV+sWGgV+sWGbV-sWreturn "#"IrkIgkIbk;}J (f++;x=@(mx*.16Qy=@(my*.`Zgd[x][y9=lb?10:31=z2=P?i-1:7$93=P<7?i+1:0$94=P$?A-1:7195=P$<71?A+1:09;z=(a1+a2+a3+a4+a5)/5;z/=1.1-(lb?.:0Qz=6}H.075"#0";K0,0,8,6`Zx=6.25*i;y=8.333*Argb(z/2.5+f/18QHQKx,y,6,8} requestAnimationFrame(&ra_j^&downO1;}Q&upO0Nstart|1Nend|0Ne.prev!Default(QGrc_UjU^=8;=6;mx=my=fgd=new Array(8`P]=[];Z%={};%.a%.lor=1;P].push(%}(Q~a.addEv!Listener("|", J(ezP$9k.toStrg(16) ).slice (-2)jX/(r.right*Qmy>`Qfor(ii<8;++i_.getBgCQmx>^Y/(r.bottom*QZfor(AA<72;++AW(l)*0.5)*256QV@((0.5UhangedTouches[0].pageQ);Pgd[iO|if(e.which==1)N;}Q~touchKc.fillJfunctionI+("0" + Hc.globalAlpha=Gvar @floor>r((e.c9].a&~mouse%tile$][A!entRect(in-r.left)a.height;KStyle=00 = =0;lb=ounddrawa.width-r.top)12m(z,1co){;aQ}li!move|';for(i of'!$%&9>@GHIJKNOPQUVWZ^_`jkz|~')with(_.split(i))_=join(pop());eval(_)
var {sin,cos,floor,min,round}=Math;
function rgb(col){
var r = floor((0.5+sin(col)*0.5)*256);
var g = floor((0.5+cos(col)*0.5)*256);
var b = floor((0.5-sin(col)*0.5)*256);
return "#"+("0" + r.toString(16) ).slice (-2)+("0" + g.toString(16) ).slice (-2)+("0" + b.toString(16) ).slice (-2);
}
function draw(){
f++;
x=floor(mx*.16);
y=floor(my*.12);
for(i=0;i<128;++i){
for(j=0;j<72;++j){
gd[x][y].a=lb?100000:3;
a1=gd[i][j].a;
a2=gd[i?i-1:127][j].a;
a3=gd[i<127?i+1:0][j].a;
a4=gd[i][j?j-1:71].a;
a5=gd[i][j<71?j+1:0].a;
gd[i][j].a=(a1+a2+a3+a4+a5)/5;
gd[i][j].a/=1.1-(lb?.12:0);
gd[i][j].a=min(gd[i][j].a,16);
}
}
c.globalAlpha=.075;
c.fillStyle="#000";
c.fillRect(0,0,800,600);
for(i=0;i<128;++i){
for(j=0;j<72;++j){
x=6.25*i;
y=8.333*j;
c.fillStyle=rgb(gd[i][j].a/2.5+f/18);
c.globalAlpha=min(gd[i][j].a,1);
c.fillRect(x,y,6,8);
}
}
requestAnimationFrame(draw);
}
a.addEventListener("mousemove", function(e){
r = a.getBoundingClientRect();
mx = round((e.clientX-r.left)/(r.right-r.left)*a.width);
my = round((e.clientY-r.top)/(r.bottom-r.top)*a.height);
});
a.addEventListener("mousedown", function(e){
if(e.which==1)lb=1;
});
a.addEventListener("mouseup", function(e){
if(e.which==1)lb=0;
});
a.addEventListener("touchstart", function(e){lb=1;});
a.addEventListener("touchend", function(e){lb=0;});
a.addEventListener("touchmove", function(e){
e.preventDefault();
var r = c.getBoundingClientRect();
mx = round((e.changedTouches[0].pageX-r.left)/(r.right-r.left)*a.width);
my = round((e.changedTouches[0].pageY-r.top)/(r.bottom-r.top)*a.height);
});
/* remove before minifying */
c=a.getContext("2d");
/***************************/
a.width=800;
a.height=600;
mx=my=lb=f=0;
gd=new Array(128);
for(i=0;i<128;++i){
gd[i]=[];
for(j=0;j<72;++j){
tile={};
tile.a=0;
tile.color=1;
gd[i].push(tile);
}
}
draw();