BrU32

JS Webcam FLIR/Brightness Multi Cam FX SRC

Dec 13th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. <style>
  2. body{
  3. filter:invert(180%);
  4. <--filter:brightness(300%);
  5. }
  6. </style>
  7. <body bgcolor="black" onload="setInterval(Gen,333)">
  8. <video id="video" hidden>
  9. </video>
  10. <canvas id="canvas" width="500" height="500"style="opacity:1.0;fillColor:black;">
  11. <script>
  12. var ii=1;
  13. var inn=0;
  14. var video = document.getElementById("video");
  15. var c = document.getElementById("canvas");
  16. var ctx = c.getContext("2d");
  17. var i=0;
  18. var canvas = document.getElementById('canvas');
  19. var context = canvas.getContext('2d');
  20. var video = document.getElementById('video');
  21. var mediaConfig = { video: true,audio:true};
  22. navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
  23. video.src = this.window.URL.createObjectURL(stream);
  24. video.play();
  25. video.addEventListener("play", function() {i = window.setInterval(function() {
  26. canvas.style.opacity=1.0;
  27. canvas.style.opacity=+Math.random()*99;
  28. ctx.drawImage(video,1,1,500^66,50)},inn++);
  29. }, false);
  30. });
  31. function Gen()
  32. {
  33. var text = "";
  34. var possible = ""
  35. for(var i=0; i!=336; i++)
  36. text+=possible.charAt(Math.floor(Math.random()*possible.length));
  37. document.body.style.backgroundColor=(text);
  38.  
  39. }
  40. </script>
  41. <center>
  42. <body bgcolor="black" onmousemove="drawe();" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
  43. <video id="video" autoplay hidden>
  44. </video>
  45. <canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="500" height="500" style="opacity:1.0;fillColor:none;">
  46. <script>
  47. var ii=10;
  48. var inn=24;
  49. var video = document.getElementById("video");
  50. var c = document.getElementById("canvas");
  51. var ctx = c.getContext("2d");
  52. var canvas = document.getElementById('canvas');
  53. var context = canvas.getContext('2d');
  54. var video = document.getElementById('video');
  55. var mediaConfig = { video: true,audio:0};
  56. function drawe(){
  57. var possible = "FABCGDE0123456789";
  58. var text = "";
  59. var canvas = document.getElementById("canvas");
  60. var ctx = canvas.getContext("2d");
  61. for(var i=0; i!=62; i++)
  62. text+=possible.charAt(Math.floor(Math.random()*possible.length))
  63. ctx.strokeStyle="#"+text;
  64. ctx.moveTo(event.x+4,event.y+4);
  65. ctx.lineTo(event.x+4,event.y+4);
  66. ctx.topmost=false;
  67.  
  68. }
  69. navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
  70. if(ctx.width==500){event.mouseMove++;}
  71. video.src = this.window.URL.createObjectURL(stream);
  72. video.play();
  73. video.addEventListener("play", function() {i = window.setInterval(function() {
  74.  
  75. canvas.style.opacity=1.0;
  76. ctx.topmost=false;
  77. ctx.drawStyle=''
  78. ctx.drawImage(video,Math.random()+400,Math.random()+400)},0.1);
  79. ctx.draw();
  80. drawe;
  81. }, false);
  82. });
  83. </script>
  84. <script>
  85. var context = new AudioContext();
  86.  
  87. </script>
  88.  
  89. <center>
  90. <body bgcolor="black" onmousemove="drawe();" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
  91. <video id="video" autoplay hidden>
  92. </video>
  93. <canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="500" height="500" style="opacity:1.0;fillColor:none;">
  94. <script>
  95. var ii=1;
  96. var video = document.getElementById("video");
  97. var c = document.getElementById("canvas");
  98. var ctx = c.getContext("2d");
  99. var canvas = document.getElementById('canvas');
  100. var context = canvas.getContext('2d');
  101. var video = document.getElementById('video');
  102. var mediaConfig = { video: true,audio:0};
  103. function drawe(){
  104. var possible = "FABCGDE0123456789";
  105. var text = "";
  106. var canvas = document.getElementById("canvas");
  107. var ctx = canvas.getContext("2d");
  108. for(var i=0; i!=63; i++)
  109. text+=possible.charAt(Math.floor(Math.random()*possible.length))
  110. ctx.fillStyle="red"+text;
  111. ctx.beginPath();
  112. ctx.arc(event.x,event.y,event.y,event.y,180*Math.PI);
  113. ctx.fill();
  114. ctx.topmost=true;
  115. ctx.stroke();
  116. text='';
  117. }
  118. navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
  119. if(ctx.width==500){event.mouseMove++;}
  120. video.src = this.window.URL.createObjectURL(stream);
  121. video.play();
  122. video.addEventListener("play", function() {i = window.setInterval(function() {
  123. canvas.style.opacity=1.0
  124. canvas.fillColor="red"
  125. ctx.topmost=false;
  126. ctx.drawImage(video,1,1,500,500)},100);
  127. ctx.draw();
  128. drawe;
  129. }, false);
  130. });
  131. </script>
Advertisement
Add Comment
Please, Sign In to add comment