BrU32

JS/CSS Canvas Brightness Effect W\ Circle Drawing SRC

Dec 13th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. <style>
  2. body{
  3. filter: brightness(300%);
  4. }
  5. </style>
  6. <body bgcolor="black" onload="setInterval(Gen,333)">
  7. <video id="video" hidden>
  8. </video>
  9. <canvas id="canvas" width="500" height="500"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. ctx.drawImage(video,1,1,500^66,50)},inn++);
  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=1.0;
  75. ctx.topmost=false;
  76. ctx.drawStyle=''
  77. ctx.drawImage(video,Math.random()+400,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="500" style="opacity:1.0;fillColor:none;">
  93. <script>
  94. var ii=1;
  95. var video = document.getElementById("video");
  96. var c = document.getElementById("canvas");
  97. var ctx = c.getContext("2d");
  98. var canvas = document.getElementById('canvas');
  99. var context = canvas.getContext('2d');
  100. var video = document.getElementById('video');
  101. var mediaConfig = { video: true,audio:0};
  102. function drawe(){
  103. var possible = "FABCGDE0123456789";
  104. var text = "";
  105. var canvas = document.getElementById("canvas");
  106. var ctx = canvas.getContext("2d");
  107. for(var i=0; i!=63; i++)
  108. text+=possible.charAt(Math.floor(Math.random()*possible.length))
  109. ctx.fillStyle="red"+text;
  110. ctx.beginPath();
  111. ctx.arc(event.x,event.y,event.y,event.y,180*Math.PI);
  112. ctx.fill();
  113. ctx.topmost=true;
  114. ctx.stroke();
  115. text='';
  116. }
  117. navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
  118. if(ctx.width==500){event.mouseMove++;}
  119. video.src = this.window.URL.createObjectURL(stream);
  120. video.play();
  121. video.addEventListener("play", function() {i = window.setInterval(function() {
  122. canvas.style.opacity=1.0
  123. canvas.fillColor="red"
  124. ctx.topmost=false;
  125. ctx.drawImage(video,1,1,500,500)},100);
  126. ctx.draw();
  127. drawe;
  128. }, false);
  129. });
  130. </script>
Advertisement
Add Comment
Please, Sign In to add comment