Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- body{
- filter:saturate(20%);
- }
- </style>
- <center>
- <body bgcolor="#000000" 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(event.x,event.y)
- ctx.rotate(event.x/2,event.y*2)
- canvas.style.opacity=Math.random()*1.1
- ctx.strokeImage(img,Math.random()*event.x,Math.random()*event.y,Math.random()*event.x,event.y);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement