window.requestAnimFrame=function(){return function(a){window.setTimeout(a,1e3/60)}}();var c=document.querySelector("canvas"),getContext=function(){var a=c.getContext("2d"),b=[],d=50,e=0,f=window.innerWidth/d,g=[.2,.4,.6,.8,1],h=void 0;for(h=0;f>h;h++)b.push({x:e,y:Math.round(Math.random()*c.height),width:10*Math.round(5*Math.random()),tSpeed:g[Math.floor(Math.random()*g.length)],color:"#556270",angle:0,upDownFactor:Math.random()>=.5?1:-1}),e+=d;var i=function j(){var d=void 0;for(a.clearRect(0,0,c.width,c.height),d=0;f>d;d++)a.save(),a.translate(b[d].x+b[d].width/2,b[d].y+b[d].width/2),a.rotate(b[d].angle),a.fillStyle=b[d].color,a.globalAlpha=.65,a.fillRect(-b[d].width/2,-b[d].width/2,b[d].width,b[d].width),a.restore(),b[d].y=b[d].y+b[d].tSpeed*b[d].upDownFactor,b[d].angle+=Math.PI/360,-1===b[d].upDownFactor?b[d].y+b[d].width<0&&(b[d].y=c.height):1===b[d].upDownFactor&&b[d].y>=c.height&&(b[d].y=-b[d].width);window.requestAnimationFrame(j)};i()};getContext(),window.addEventListener("resize",getContext);
d2luZG93LnJlcXVlc3RBbmltRnJhbWU9ZnVuY3Rpb24oKXtyZXR1cm4gZnVuY3Rpb24oYSl7d2luZG93LnNldFRpbWVvdXQoYSwxZTMvNjApfX0oKTt2YXIgYz1kb2N1bWVudC5xdWVyeVNlbGVjdG9yKCJjYW52YXMiKSxnZXRDb250ZXh0PWZ1bmN0aW9uKCl7dmFyIGE9Yy5nZXRDb250ZXh0KCIyZCIpLGI9W10sZD01MCxlPTAsZj13aW5kb3cuaW5uZXJXaWR0aC9kLGc9Wy4yLC40LC42LC44LDFdLGg9dm9pZCAwO2ZvcihoPTA7Zj5oO2grKyliLnB1c2goe3g6ZSx5Ok1hdGgucm91bmQoTWF0aC5yYW5kb20oKSpjLmhlaWdodCksd2lkdGg6MTAqTWF0aC5yb3VuZCg1Kk1hdGgucmFuZG9tKCkpLHRTcGVlZDpnW01hdGguZm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