Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- body{
- filter:contrast(34342);
- }
- </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 Text1=prompt("Enter Text:")
- var ii=1;
- var video = document.getElementById("video");
- var c = document.getElementById("canvas");
- var ctx = c.getContext("2d");
- var mediaConfig = { video: true,audio:true};
- function drawe(){
- var possible = "FABCGDE0123456789";
- var text = "";
- for(var i=0; i!=6; i++)
- text+=possible.charAt(Math.floor(Math.random()*possible.length))
- ctx.fillStyle="#"+text
- var grd = ctx.createLinearGradient(0,0,500,50);
- grd.addColorStop(0,"#"+text);
- grd.addColorStop(1,"#"+text);
- ctx.fillStyle=grd;
- ctx.shadowColor=grd;
- ctx.font=Math.random()*500+"px Creepy";
- ctx.fillText(""+Text1,event.x,event.y,event.x,event.y)
- ctx.fill();
- text='';
- }
- 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.topmost=false;
- ctx.drawImage(video,Math.random()*-20,0,500,500)},100);
- ctx.fill();
- drawe;
- drawe;
- }, false);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement