Advertisement
BrU32

JS Night Vision Webcam Rainbow Ballon Party SRC!!!!!

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