Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- body{
- filter:saturate(880%);
- }
- </style>
- <center>
- <body onmousemove="setInterval(Load_Img('https://api.audiotool.com/track/dj_bru_-_acid_step/2/cover/128.jpg?showDefault=true'),33)" background-color="white">
- <video id="video" autoplay hidden>
- </video>
- <canvas id="canvas" width="5000" height="5000" style="drawColor:#FFFFFF">
- <script>
- var video = document.getElementById("video");
- var c = document.getElementById("canvas");
- var ctx = c.getContext("2d");
- var i=0;
- var mediaConfig = { video:true,audio:false};
- 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,Math.PI--,Math.PI++,window.innerHeight,window.innerWidth)},31);
- }, false);
- });
- function Load_Img(path){
- var h,w;
- h=('5000');
- w=('5000')
- var canvas = document.getElementById("canvas");
- var ctx = canvas.getContext("2d");
- var img = new Image();
- img.src=(path)
- ctx.translate(1,-1)
- ctx.rotate(h/2,w*1)
- ctx.strokeImage(img,w,w,h,h);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement