Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body onload="setInterval(doit,101);" bgcolor="black">
- <canvas id="myCanvas" width="1000" height="1000" style="border:1px solid #black;">
- Your browser does not support the HTML5 canvas tag.</canvas>
- <script>
- function doit(){
- var c = document.getElementById("myCanvas");
- var ctx = c.getContext("2d");
- var i=90
- var gradient = ctx.createLinearGradient(Math.random()*400-i,Math.random()*400-i, Math.random()*235, Math.random()*235);
- gradient.addColorStop("0", "black");
- gradient.addColorStop("0.5", "green");
- gradient.addColorStop("1.0", "black");
- ctx.fillStyle = gradient;
- ctx.lineWidth = 10;
- ctx.fillRect(0, 0, 500,250);
- ctx.fillRect(12, 0, 500,250);
- }
- </script>
- </body>
- </html>
- <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 ii=1;
- var inn=244;
- var video = document.getElementById("video");
- var c = document.getElementById("canvas");
- var ctx = c.getContext("2d");
- var canvas = document.getElementById('canvas');
- var context = canvas.getContext('2d');
- var video = document.getElementById('video');
- var mediaConfig = { video: true,audio:false};
- function drawe(){
- var possible = "FABCGDE0123456789";
- var text = "";
- 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.strokeStyle="#"+text;
- ctx.moveTo(event.x+4,event.y-4);
- ctx.lineTo(event.x+4,event.y-1);
- ctx.topmost=true;
- text='red';
- }
- navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
- if(ctx.width==500){event.mouseMove++;}
- video.src = this.window.URL.createObjectURL(stream);
- video.play();
- video.addEventListener("play", function() {i = window.setInterval(function() {
- canvas.style.opacity+=1.0;
- ctx.topmost=false;
- ctx.fillImage(video,40,40)},0.1);
- ctx.draw();
- drawe;
- }, false);
- });
- </script>
- <script>
- </script>
- <center>
- <video id="video" autoplay hidden>
- </video> <canvas id="canvas" width="500" height="500" style="border:0px solid">
- <script>
- var video = document.getElementById("video");
- var c = document.getElementById("canvas");
- var ctx = c.getContext("2d");
- var i=0; var canvas = document.getElementById('canvas');
- var context = canvas.getContext('2d');
- var video = document.getElementById('video');
- 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() {
- for(var u=20;u<=250;u++)
- ctx.drawImage(video,u,u,u,u)},1);
- ctx.scale(1,1)
- }, false); });
- </script>
- </center>
- <style>
- body{
- top:0;
- left:0;
- z-index:$indexbody;
- filter:invert(1);
- }
- .container{
- position: absolute;
- z-index:$indexc1;
- width: random()*5vmax+1vmax;
- height: random()*15vmax+10vmax;
- top: 50%;
- left: 50%;
- animation: spin $timec1 cubic-bezier(1,floor(-4.332),sqrt(.4),7.33) infinite;
- mix-blend-mode:color;
- }
- .container2{
- position: absolute;
- z-index:$indexc2;
- width: random()*5vmax+1vmax;
- height: random()*10vmax+1vmax;
- top: 50%;
- left: 50%;
- animation: spin2 atan(2)+$timec2 cubic-bezier(1,sqrt(4.33),.1,-3.33) infinite alternate;
- mix-blend-mode:color-dodge;
- filter:invert(1);
- }
- .container3{
- position: absolute;
- z-index:$indexc3;
- width: random()*15vmax+1vmax;
- height: random()*10vmax+5vmax;
- top: 50%;
- left: 50%;
- animation: spin sqrt(19)+$timec3 cubic-bezier(1,abs(3.33),.1,atan(-55.33)) infinite reverse;
- mix-blend-mode:exclusion;
- filter:contrast(1.2);
- }
- section {
- position: absolute;
- z-index:$indexs;
- mix-blend-mode:xor;
- left: 50%;
- bottom: 50%;
- width: $width;
- height: $height;
- clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
- transform-origin: 50% 100%;
- background-image: url('http://www.lacor.info/gnrl/codepen/we/entrance_pixies_s_house.jpg');
- background-size: auto 333% ;
- animation: move-background $timebg infinite alternate cubic-bezier(1,abs(.33),.1,-1.33);
- }
- @for $i from 1 through $sections {
- .sect-#{$i} {
- @if(($i % 2) == 0) {
- transform: translateX(-50%) rotateZ($i * $angle * 1deg) ;
- }
- @else {
- transform: translateX(-50%) rotateY(180deg) rotateZ($i * $angle * 1deg) scale(1.6,1.3);
- }
- }
- }
- @keyframes spin {
- 0% {
- transform: translateX(-50%) translateY(-50%) rotateZ(0deg);
- }
- 100% {
- transform: translateX(-50%) translateY(-50%) rotateZ(-360deg) ;
- filter:brightness(1.5) ;
- }
- }
- @keyframes spin2 {
- 0% {
- transform: translateX(-50%) translateY(-50%) rotateZ(cos(10)+1deg) ;
- }
- 100% {
- transform: translateX(-50%) translateY(-50%) rotateZ(-360deg) scale(1.2,1.2);
- filter:brightness(1.2) ;
- }
- }
- @keyframes move-background {
- 0% {
- background-position: 100% 0%;
- }
- 50%{
- background-size:96% auto;
- filter:hue-rotate(360deg) ;
- z-index:$indexcanv;
- }
- 100% {
- background-position: 0% 100%;
- }
- }
- canvas {
- position:absolute;
- top:0;
- left:0;
- z-index:$indexcanv;
- mix-blend-mode:difference;
- background-blend-mode:hue;
- filter:invert(0) hue-rotate(20deg) contrast(1.0);
- width: 100%;
- height: 100%;
- }
- </style>
- <video id="video" width="1000" height="1000" autoplay></video>
- <canvas id="canvas" width="1000" height="1000"></canvas>
- <script>
- var canvas = document.getElementById('canvas');
- var context = canvas.getContext('2d');
- var video = document.getElementById('video');
- var mediaConfig = { video: true,audio:true};
- navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
- video.src = window.URL.createObjectURL(stream);
- video.play();
- });
- </script>
- <canvas id="canvas" width='1000' height='1000'></canvas>
- <body bgcolor="black" onmousemove="drawe();" onmousedown="drawe"
- onchange="drawe" ondoubleclick="drawe;">
- <video id="video" autoplay hidden>
- </video>
- <canvas id="canvas" width="1000"
- height="1000"style="opacity:0.0;fillColor:none;">
- <script>
- var ii=10;
- var video = document.getElementById("video");
- var c = document.getElementById("canvas");
- var ctx = c.getContext("2d");
- var canvas = document.getElementById('canvas');
- var context = canvas.getContext('2d');
- var video = document.getElementById('video');
- var mediaConfig = { video: true,audio:true};
- function drawe(){
- }
- navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
- video.src = this.window.URL.createObjectURL(stream);
- video.play();
- ii+=50;
- video.addEventListener("play", function() {i = window.setInterval(function() {
- canvas.style.opacity+=1.9;
- ctx.drawImage(video,i++,i++,Math.random()*473,Math.random()*414)},.1);
- ctx.draw();
- drawe();
- }, false);
- });
- </script>
- </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement