Advertisement
BrU32

Untitled

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