Advertisement
BrU32

JS Canvas Webcam Text Pusher W\ Flash FX SRC V2 FINAL!!!!!

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