ctx = a;
m = 1;
n = 1;
function loop() {
setTimeout(function ()
{
for (y = 0;y < 50; y++) {
for (x = 0;x < 200; x++) {
r = Math.floor((Math.cos((x+n+y+Math.sin(x*10))/20)*255)+(Math.cos((x+m+y)/10)*255));
g = Math.floor((Math.sin((x+m+y+Math.sin(y*10))/20)*255)+(Math.cos((x+n+x)/20)*255));
b = Math.floor((Math.cos((x+Math.cos(y/(x+m))+Math.sin(y*10))/20)*255)+(Math.cos((x+n+x)/20)*255));
ctx.fillStyle = "rgba("+r+", "+g+", "+b+",1)";
ctx.fillRect(x*4, y*4, 4, 4);
}
}
m++;
n += 5;
loop();
}, 20);
}
loop();
Y3R4ID0gYTsNCg0KbSA9IDE7DQpuID0gMTsNCg0KZnVuY3Rpb24gbG9vcCgpIHsNCiAgc2V0VGltZW91dChmdW5jdGlvbiAoKQ0KICB7DQogICAgZm9yICh5ID0gMDt5IDwgNTA7IHkrKykgew0KICAgICAgZm9yICh4ID0gMDt4IDwgMjAwOyB4KyspIHsNCiAgICAgICAgciA9IE1hdGguZmxvb3IoKE1hdGguY29zKCh4K24reStNYXRoLnNpbih4KjEwKSkvMjApKjI1NSkrKE1hdGguY29zKCh4K20reSkvMTApKjI1NSkpOw0KICAgICAgICBnID0gTWF0aC5mbG9vcigoTWF0aC5zaW4oKHgrbSt5K01hdGguc2luKHkqMTApKS8yMCkqMjU1KSsoTWF0aC5jb3MoKHgrbit4KS8yMCkqMjU1KSk7DQogICAgICAgIGIgPSBNYXRoLmZsb29yKChNYXRoLmNvcygoeCtNYXRoLmNvcyh5Lyh4K20pKStNYXRoLnNpbih5KjEwKSkvMjApKjI1NSkrKE1hdGguY29zKCh4K24reCkvMjApKjI1NSkpOyANCiAgICAgICAgDQogICAgICAgIGN0eC5maWxsU3R5bGUgPSAicmdiYSgiK3IrIiwgIitnKyIsICIrYisiLDEpIjsNCiAgICAgICAgY3R4LmZpbGxSZWN0KHgqNCwgeSo0LCA0LCA0KTsNCiAgICAgIH0NCiAgICB9DQogICAgbSsrOw0KICAgIG4gKz0gNTsNCiAgICBsb29wKCk7DQogIH0sIDIwKTsNCn0NCiAgICAgICAgICAgDQpsb29wKCk7DQogICAgICAgICAgICAg
Original source not submitted