Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as HTML by 10llO ( 15 years ago )
<html>
<head>
<title></title>
<style type="text/css">
body{
  background:#000;
  color:#FFF;
  margin:0;
  overflow:hidden;
  padding:0;
}
address{
  bottom:10px;
  font-family:Georgia,sans;
  font-style:normal;
  position:absolute;
  right:10px;
  text-align:right;
}
a:link,a:visited{
  color:#CCC;
}
a:hover{
  color:#FFF;
}
td{
}
</style>
[removed]

var size = 25;

var phase = 0;
var divisor = 15;

function drawFrame()
{

  for (var debugY = 0; debugY < size; debugY++)
  {
    for (var debugX = 0; debugX < size; debugX++)
    {
      x = debugX / size * 200;
      y = debugY / size * 200;

      r = 255;
      g = 255;
      b = 255;
//      r = Math.ceil(Math.sin(phase / divisor) * 127) + 127;
//      g = Math.ceil(Math.sin(phase / divisor + (Math.PI / 3 * 2)) * 127) + 127;
//      g = Math.ceil(Math.sin(x*y/5000) * 127) + 127;
//      g = Math.ceil(Math.sin(x/30+phase/4) * 127) + 127;
//      g = Math.ceil(Math.sin(x*y/5000) * 63 + Math.sin(x/30+phase/4) * 63) + 127;

//      g = Math.ceil(Math.sin(y/30+phase/4) * 127) + 127;
//      r = Math.ceil(Math.sin(x/50+phase/5) * 127) + 127;
//      b = Math.ceil(Math.sin((x+y)/50+phase/5) * 127) + 127 + 64;

      b = Math.sin(x/50-phase/6) * Math.cos(y/70) * 80 + 0;
      r = Math.sin(x/70) * Math.cos(y/50-phase/5) * 150 + 0;
      g = (b + r) / 1;

//      b = Math.ceil(Math.sin(phase / divisor + (Math.PI / 3 * 4)) * 127) + 127;

      color = "rgb(" + Math.round(r) + "," + Math.round(g) + "," + Math.round(b) + ")";
      document.getElementById("x" + debugX + "y" + debugY).style.backgroundColor = color;

    }
  }

  phase++;

  window.setTimeout('drawFrame()',10);
}

[removed]
</head>
<body>

[removed]
[removed]('<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">');
for (var y = 0; y < size; y++)
{
  [removed]('<tr>');
  for (var x = 0; x < size; x++)
  {
    [removed]('<td id="x' + x + 'y' + y + '">&nbsp;</td>');
  }
  [removed]('</tr>');
}
[removed]('</table>');
[removed]
</body>
</html>

 

Revise this Paste

Your Name: Code Language: