").attr({width:this.width,height:this.height}).appendTo(this.$container).get(0),this.context=this.canvas.getContext("2d"),this.jellyfishes=[],this.theta=0,this.x=0,this.y=0,this.destinationX=this.x,this.destinationY=this.y,this.dusts=[]},reconstructMethod:function(){this.render=this.render.bind(this)},getRandomValue:function(t){return t.min+(t.max-t.min)*Math.random()},createElements:function(){for(var t=0,e=this.JELLYFISH_RATE*this.width*this.height;tthis.width-this.ADJUST_OFFSET&&(this.destinationX=this.width),this.destinationYthis.height-this.ADJUST_OFFSET&&(this.destinationY=this.height))},render:function(){requestAnimationFrame(this.render),this.destinationX>this.x?this.x=Math.min(this.x+this.ADJUST_DISTANCE,this.destinationX):this.x=Math.max(this.x-this.ADJUST_DISTANCE,this.destinationX),this.destinationY>this.y?this.y=Math.min(this.y+this.ADJUST_DISTANCE,this.destinationY):this.y=Math.max(this.y-this.ADJUST_DISTANCE,this.destinationY);var t=this.context.createRadialGradient(this.x,this.y,0,this.x,this.y,this.radius);t.addColorStop(0,"hsl(245, 100%, 50%)"),t.addColorStop(.3,"hsl(245, 100%, 30%)"),t.addColorStop(1,"hsl(245, 100%, 10%)"),this.context.fillStyle=t,this.context.fillRect(0,0,this.width,this.height);for(var e=0,i=this.dusts.length;e=Math.PI-this.expansionDelta&&this.expansion<=Math.PI?this.expansion+=this.expansionDelta/this.EXTENSION_COUNT:this.expansion+=this.expansionDelta,this.expansion%=2*Math.PI,this.x+=this.vx,this.y+=this.vy,0<=this.expansion&&this.expansion<=Math.PI&&(this.vx+=this.ax,this.vy+=this.ay),this.vx*=this.FRICTION,this.vy*=this.FRICTION,this.judgeToReset()},createHead:function(t,e){t.beginPath(),t.moveTo(-e,this.baseY),t.bezierCurveTo(-this.baseCPX,this.baseCPY,this.baseCPX,this.baseCPY,e,this.baseY),t.closePath(),t.fill()},createMainPattern:function(t,e){t.beginPath(),t.moveTo(.6*-e,this.baseY),t.bezierCurveTo(.8*-this.baseCPX,.5*this.baseCPY,.8*this.baseCPX,.5*this.baseCPY,.6*e,this.baseY),t.stroke()},createSubPattern:function(t,e,i,s){t.save(),t.beginPath(),t.translate(e,i),t.rotate(s),t.scale(1,.5),t.arc(0,0,4,0,2*Math.PI,!1),t.stroke(),t.restore()},createFeeler:function(t,e){for(var i=-3;i<=3;i++){t.save(),t.beginPath(),t.strokeStyle=e,t.translate(2*i,this.baseY),t.moveTo(0,0),s=(a=0<=this.expansion&&this.expansion<=Math.PI?(Math.PI-this.expansion)/Math.PI:(this.expansion-Math.PI)/Math.PI,i*this.feelerWidth*a);var s,a=.5this.renderer.width+this.OFFSET_TO_JUDGE&&0this.renderer.height+this.OFFSET_TO_JUDGE&&0this.renderer.width+this.RADIUS||this.y<-this.RADIUS||this.y>this.renderer.height+this.RADIUS)&&this.init()}},$(function(){RENDERER.init()});ANCHEMYAboutColophonContactContactIf ever you're up for a chat or if you want anything removed from this site:MastodonEmailTheme by Bradley Taunt. BG from K-T.Type by Anita Jürgeleit. Favicon by Openmoji.
If ever you're up for a chat or if you want anything removed from this site: