Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- body{
- filter:invert(38422334deg);
- }
- canvas{
- filter:flip(18044);
- filter:invert(180%);
- }
- </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="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:true};
- 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="#black";
- ctx.beginPath();
- ctx.arc(Math.random()*event.x,Math.random()*event.y,2,59,50,Math.PI*180);
- ctx.fillRect(Math.random()*event.x,Math.random()*event.y,3,2)
- ctx.arc(Math.random()*event.x,Math.random()*event.y,2,59,50,Math.PI*180);
- ctx.fillRect(Math.random()*event.x,Math.random()*event.y,3,2)
- ctx.fill();
- 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() {
- ii++;
- ctx.topmost=false;
- ctx.drawImage(video,Math.random()*-ii,0,500+ii++,500+ii++)},200);
- ctx.fill();
- drawe;
- drawe;
- }, false);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement