Advertisement
BrU32

JS Canvas Random Color Visual FX SRC FINAL!!!!!

Jan 19th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <html>
  2. <body onload="setInterval(drawe,22)" background-color="black">
  3.  
  4. <canvas id="myCanvas" width="1000" height="1000" style="background:black;">
  5. </canvas>
  6. <center>
  7. <script>
  8. var inn=' ';
  9. var outlen=(inn.length*44+9);
  10. var ii=outlen;
  11.  
  12. function drawe(){
  13. var out
  14.  
  15. var text = "";
  16. var possible = "FABCGDE0123456789";
  17. var canvas = document.getElementById("myCanvas");
  18. var ctx = canvas.getContext("2d");
  19. ctx.font="50px Comis Ariel"
  20. for(var i=0; i!=6; i++)
  21. text+=possible.charAt(Math.floor(Math.random()*possible.length));
  22. ctx.strokeStyle='#'+text;
  23. ctx.fillStyle="#"+text;
  24. var c = document.getElementById("myCanvas");
  25. var ctx = c.getContext("2d");
  26. ctx.beginPath();
  27. ctx.fillText(text+"",ii+1,ii+1,304,304);
  28. ctx.paint();
  29. text='';
  30. if(outlen<4){
  31. //return;
  32. }
  33. }
  34. </script>
  35. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement