Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- body{
- filter:saturate(14433334%);
- }
- </style>
- <center>
- <body onmousemove="setInterval(drawe,300)"
- bgcolor="black">
- <video id="video" autoplay hidden>
- </video>
- <canvas id="canvas" width="1000" height="1000" style="drawColor:#FFFFFF">
- <script>
- var inn=prompt("Enter Text:")
- var video=document.getElementById("video");
- var c=document.getElementById("canvas");
- var ctx = c.getContext("2d");
- var i=0;
- var mediaConfig = { video:1,audio:0};
- 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,ii,ii)},50);
- ctx.topmost=false;
- ctx.draw();
- }, false);
- });
- var ii=50;
- function drawe(){
- ii++;
- var text = "";
- var possible = "FABCGDE0123456789";
- 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.font=Math.random()*344+"px Sans Serif";
- ctx.fillStyle="#"+text;
- var c = document.getElementById("canvas");
- var ctx = c.getContext("2d");
- ctx.beginPath();
- ctx.fillText(""+inn,50,ii,ii,ii,ii);
- ctx.transform(1,ii*Math.PI)
- text='';
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement