Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="500" height="500" style="opacity:1.0;fillColor:none;">
- <script>
- var ii=1;
- var video = document.getElementById("video");
- var c = document.getElementById("canvas");
- var ctx = c.getContext("2d");
- var canvas = document.getElementById('canvas');
- var context = canvas.getContext('2d');
- var video = document.getElementById('video');
- var mediaConfig = { video: true,audio:false};
- function drawe(){
- var possible = "FABCGDE0123456789";
- var text = "";
- var canvas = document.getElementById("canvas");
- var ctx = canvas.getContext("2d");
- for(var i=0; i!=6; i++)
- text+=possible.charAt(Math.floor(Math.random()*possible.length))
- ctx.fillStyle="#"+text;
- ctx.beginPath();
- ctx.arc(event.x,event.y,event.y,Math.PI*event.x,Math.PI*event.y);
- ctx.fill();
- ctx.topmost=true;
- ctx.stroke();
- //text='';
- }
- navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
- if(ctx.width==500){event.mouseMove++;}
- video.src = this.window.URL.createObjectURL(stream);
- video.play();
- video.addEventListener("play", function() {i = window.setInterval(function() {
- canvas.style.opacity-=0.1
- canvas.style.opacity++;
- ctx.topmost=false;
- ctx.drawImage(video,0,1,500,500)},100);
- 0
- drawe;
- }, false);
- });
- </script>
- <center>
- <body bgcolor="#000000" onload="setInterval('t();',13033)"/>
- <canvas id="canvas" width="5000" height="5000" style="border:4px; background-color:black"></canvas>
- <script>
- function t(){
- var canvas = document.querySelector('#canvas').getContext('2d'),side = 0,
- size = Math.random()*100,
- x = Math.random()*100,
- y = Math.random()*100;
- canvas.beginPath();
- canvas.lineTo(x*Math.sqrt(33) * Math.cos(side * 6 * Math.PI / 14), y + size * Math.sin(side * 8 * Math.PI / 14));
- canvas.fillStyle = "#0FF333";
- canvas.fill();
- canvas.draw();
- }
- </script>
- <body bgcolor="white"/>
- <canvas id="canvas"></canvas>
- <style>
- canvas{
- filter:invert(433%);
- filter:saturate(1114%);
- }
- </style>
- <center>
- <body bgcolor="black" onmousemove="drawe();" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
- <video id="video" autoplay hidden>
- </video>
- <canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="1000" height="1000" style="opacity:1.0;fillColor:none; width:500px">
- <script>
- var i=22
- var video = document.getElementById("video");
- var canvas = document.getElementById("canvas");
- var ctx = canvas.getContext("2d");
- var video = document.getElementById('video');
- var mediaConfig = { video: true,audio:true};
- navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
- video.src = this.window.URL.createObjectURL(stream);
- video.play();
- video.addEventListener("play", function() {i = window.setInterval(function() {
- ctx.drawImage(video,i,i,500,500)},Math.random()*1000);
- ctx.draw();
- },true);
- });
- </script>
- </body>
- </html>>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement