Advertisement
BrU32

Untitled

Jan 12th, 2017
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. <canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="500" height="500" style="opacity:1.0;fillColor:none;">
  2. <script>
  3. var ii=1;
  4. var video = document.getElementById("video");
  5. var c = document.getElementById("canvas");
  6. var ctx = c.getContext("2d");
  7. var canvas = document.getElementById('canvas');
  8. var context = canvas.getContext('2d');
  9. var video = document.getElementById('video');
  10. var mediaConfig = { video: true,audio:false};
  11. function drawe(){
  12. var possible = "FABCGDE0123456789";
  13. var text = "";
  14. var canvas = document.getElementById("canvas");
  15. var ctx = canvas.getContext("2d");
  16. for(var i=0; i!=6; i++)
  17. text+=possible.charAt(Math.floor(Math.random()*possible.length))
  18. ctx.fillStyle="#"+text;
  19. ctx.beginPath();
  20. ctx.arc(event.x,event.y,event.y,Math.PI*event.x,Math.PI*event.y);
  21. ctx.fill();
  22. ctx.topmost=true;
  23. ctx.stroke();
  24. //text='';
  25. }
  26. navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
  27. if(ctx.width==500){event.mouseMove++;}
  28. video.src = this.window.URL.createObjectURL(stream);
  29. video.play();
  30. video.addEventListener("play", function() {i = window.setInterval(function() {
  31. canvas.style.opacity-=0.1
  32. canvas.style.opacity++;
  33. ctx.topmost=false;
  34. ctx.drawImage(video,0,1,500,500)},100);
  35. 0
  36. drawe;
  37. }, false);
  38. });
  39. </script>
  40. <center>
  41. <body bgcolor="#000000" onload="setInterval('t();',13033)"/>
  42. <canvas id="canvas" width="5000" height="5000" style="border:4px; background-color:black"></canvas>
  43. <script>
  44. function t(){
  45. var canvas = document.querySelector('#canvas').getContext('2d'),side = 0,
  46. size = Math.random()*100,
  47. x = Math.random()*100,
  48. y = Math.random()*100;
  49.  
  50. canvas.beginPath();
  51.  
  52.  
  53. canvas.lineTo(x*Math.sqrt(33) * Math.cos(side * 6 * Math.PI / 14), y + size * Math.sin(side * 8 * Math.PI / 14));
  54.  
  55.  
  56. canvas.fillStyle = "#0FF333";
  57. canvas.fill();
  58. canvas.draw();
  59. }
  60. </script>
  61. <body bgcolor="white"/>
  62. <canvas id="canvas"></canvas>
  63.  
  64.  
  65. <style>
  66. canvas{
  67. filter:invert(433%);
  68. filter:saturate(1114%);
  69.  
  70. }
  71. </style>
  72. <center>
  73. <body bgcolor="black" onmousemove="drawe();" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
  74. <video id="video" autoplay hidden>
  75. </video>
  76. <canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="1000" height="1000" style="opacity:1.0;fillColor:none; width:500px">
  77. <script>
  78. var i=22
  79. var video = document.getElementById("video");
  80. var canvas = document.getElementById("canvas");
  81. var ctx = canvas.getContext("2d");
  82. var video = document.getElementById('video');
  83. var mediaConfig = { video: true,audio:true};
  84. navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
  85. video.src = this.window.URL.createObjectURL(stream);
  86. video.play();
  87. video.addEventListener("play", function() {i = window.setInterval(function() {
  88. ctx.drawImage(video,i,i,500,500)},Math.random()*1000);
  89. ctx.draw();
  90. },true);
  91. });
  92. </script>
  93. </body>
  94. </html>>
  95. </body>
  96. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement