BrU32

JS Canvas Circle Appear At A 3D Angle SRC

Aug 19th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <html>
  2. <body onload="setInterval(drawe,238)" background-color="white">
  3. <canvas id="myCanvas" width="1000" height="1000" style="background:black;">
  4. </canvas>
  5. <script>
  6. function drawe(){
  7. var text = "";
  8. var possible = "FABCGDE0123456789";
  9. var canvas = document.getElementById("myCanvas");
  10. var ctx = canvas.getContext("2d");
  11. for(var i=0; i!=26; i++)
  12. text+=possible.charAt(Math.floor(Math.random()*possible.length));
  13. ctx.strokeStyle='red';
  14. ctx.fillStyle="red";
  15. ctx.beginPath();
  16. ctx.arc(i+250,100,Math.random()*i,Math.random()*i-10,Math.PI*i);
  17. ctx.fill();
  18. text='';
  19. }
  20. </script>
  21. </body>
Advertisement
Add Comment
Please, Sign In to add comment