Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body onload="setInterval(drawe,55)" background-color="white">
- <canvas id="myCanvas" width="1000" height="1000" style="background:black;">
- </canvas>
- <script>
- var ii=4;
- var text='#red';
- function drawe(){
- ii++;
- var text = "";
- var possible = "FABCGDE0123456789";
- var canvas = document.getElementById("myCanvas");
- var ctx = canvas.getContext("2d");
- for(var i=0; i!=6; i++)
- text+=possible.charAt(Math.floor(Math.random()*possible.length));
- ctx.strokeStyle='#'+text;
- ctx.fillStyle="#"+text;
- var c = document.getElementById("myCanvas");
- var ctx = c.getContext("2d");
- var cts=c.getContext("2d");
- ctx.beginPath();
- //text='';
- ctx.fillRect(10,1,100,Math.random()*ii,ii);
- ctx.fillRect(30,1,100,Math.random()*ii,ii);
- ctx.fillRect(50,1,100,Math.random()*ii,ii);
- ctx.fillRect(70,1,100,Math.random()*ii,ii);
- ctx.fillRect(90,1,100,Math.random()*ii,ii);
- ctx.fillRect(110,1,100,Math.random()*ii,ii);
- ctx.fillRect(130,1,100,Math.random()*ii,ii);
- ctx.fillRect(150,1,100,Math.random()*ii,ii);
- ctx.fillRect(170,1,100,Math.random()*ii,ii);
- ctx.fillRect(190,1,100,Math.random()*ii,ii);
- ctx.fillRect(210,1,100,Math.random()*ii,ii);
- ctx.fillRect(230,1,100,Math.random()*ii,ii);
- ctx.fillRect(250,1,100,Math.random()*ii,ii);
- ctx.fillRect(270,1,100,Math.random()*ii,ii);
- ctx.fillRect(290,1,100,Math.random()*ii,ii);
- ctx.fillRect(310,1,100,Math.random()*ii,ii);
- ctx.fillRect(330,0,100,Math.random()*ii,ii);
- ctx.fillRect(350,0,100,Math.random()*ii,ii);
- ctx.fillRect(370,1,100,Math.random()*ii,ii);
- ctx.fillRect(390,1,100,Math.random()*ii,ii);
- ctx.fillRect(410,0,100,Math.random()*ii,ii);
- ctx.fillRect(430,1,100,Math.random()*ii,ii);
- ctx.fillRect(450,1,100,Math.random()*ii,ii);
- ctx.fillRect(470,0,100,Math.random()*ii,ii);
- ctx.fillRect(490,0,100,Math.random()*ii,ii);
- ctx.fillRect(510,1,100,Math.random()*ii,ii);
- ctx.fillRect(530,1,100,Math.random()*ii,ii);
- ctx.fillRect(550,1,100,Math.random()*ii,ii);
- ctx.fillRect(570,1,100,Math.random()*ii,ii);
- ctx.fillRect(590,1,100,Math.random()*ii,ii);
- ctx.fillRect(610,1,100,Math.random()*ii,ii);
- ctx.fillRect(630,1,100,Math.random()*ii,ii);
- ctx.fillRect(650,1,100,Math.random()*ii,ii);
- ctx.fillRect(670,1,100,Math.random()*ii,ii);
- ctx.fillRect(690,1,100,Math.random()*ii,ii);
- ctx.drawRect(710,1,100,Math.random()*ii,ii);
- ctx.reraw();
- //text='';
- }
- </script>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment