Advertisement
BrU32

JS Canvas Real FLIR/Night Vision SRC!!!!!

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