Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- body{
- filter:invert(180%);
- filter:(brightness:5595%);
- }
- </style>
- <center>
- <body onload="setInterval(drawe,33)" bgcolor="black">
- <video id="video" autoplay hidden>
- </video>
- <canvas id="canvas" width="500" height="500" 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: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,0,0)},40);
- ctx.topmost=false;
- ctx.draw();
- }, false);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement