Advertisement
BrU32

Untitled

Mar 10th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <style>
  2. body{
  3. filter:invert(180%);
  4. }
  5. </style>
  6. <center>
  7. <body bgcolor="black" onmousemove="drawe();" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
  8. <video id="video" autoplay hidden>
  9. </video>
  10. <canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="500" height="500" style="opacity:1.0;fillColor:none;">
  11. <script>
  12. var ii=1;
  13. var inn=244;
  14. var video = document.getElementById("video");
  15. var c = document.getElementById("canvas");
  16. var ctx = c.getContext("2d");
  17. var canvas = document.getElementById('canvas');
  18. var context = canvas.getContext('2d');
  19. var video = document.getElementById('video');
  20. var mediaConfig = { video: true,audio:false};
  21. function drawe(){
  22. var possible = "FABCGDE0123456789";
  23. var text = "";
  24. var canvas = document.getElementById("canvas");
  25. var ctx = canvas.getContext("2d");
  26. for(var i=0; i!=6; i++)
  27. text+=possible.charAt(Math.floor(Math.random()*possible.length))
  28. ctx.strokeStyle="#"+text;
  29. ctx.topmost=true;
  30. text='';
  31. }
  32. navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
  33. if(ctx.width==500){event.mouseMove++;}
  34. video.src = this.window.URL.createObjectURL(stream);
  35. video.play();
  36. video.addEventListener("play", function() {i = window.setInterval(function() {
  37. ctx.topmost=false;
  38. ctx.rotate(1000);
  39. ctx.drawImage(video,Math.random()*1000,Math.random()*1000)},.3);
  40.  
  41. ctx.rotate(ii);
  42. ctx.draw();
  43.  
  44.  
  45. }, false);
  46. });
  47. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement