Advertisement
BrU32

JS X/Y Point Plot Webcam Rainbow Smear Fx SRC

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