0x865e0647…43a7sent to0x99a9b7c1…b069·#18,335,609·view on Etherscan
(1+.2*R.dd())*this.MW;let h=R.sgn();this.MLP=cV(this.McP.x-this.MW/2+R.dd()*d.Wv,this.McP.y*(1+h*R.d()*.2)+R.dd()*d.Wv),this.MRP=cV(this.McP.x+this.MW/2+R.dd()*d.Wv,this.McP.y*(1+h*R.d()*.2)+R.dd()*d.Wv),this.MLCP=cV(this.McP.x-(this.MW-this.McW)/2+R.dd()*d.Wv,this.McP.y+R.dd()*d.Wv),this.MRCP=cV(this.McP.x+(this.MW-this.McW)/2+R.dd()*d.Wv,this.McP.y+R.dd()*d.Wv),this.MH=(.05+.1*R.d())*this.MW,this.LEyeP=cV(-this.LLSW*(.3+4*R.dd()*d.Wv),R.dd()*d.HH1v),this.REyeP=cV(this.LRSW*(.3+4*R.dd()*d.Wv),R.dd()*d.HH1v),this.LEyeW=(R.n(.2,.4)+2*R.dd()*d.Wv)*this.LLSW,this.REyeW=(R.n(.2,.4)+2*R.dd()*d.Wv)*this.LRSW;let a=this.LEyeW*(.75+.5*R.d()),n=R.n(.1,.3)*a,o=R.n(.1,.3)*a,l=a-n-o,c=R.n(.07,.125)*this.UH,L=R.n(.07,.125)*this.UH;this.LEye=new aDiamond(this.LEyeP,n,l,o,c,L,2.51,i),l=(a*=1+.15*R.dd())-(n=R.n(.1,.3)*a)-(o=R.n(.1,.3)*a),c=R.n(.07,.125)*this.UH,L=R.n(.07,.125)*this.UH,this.REye=new aDiamond(this.REyeP,n,l,o,c,L,2.51,i)}draw(){p.push(),p.translate(this.cP.x,this.cP.y);for(let t=0;t<this.nD;t++){this.drawSchema&&(p.push(),p.strokeWeight(.25),p.line(-d.sW/2+2*R.dd(),this.LEarP.y+5*R.dd(),d.sW/2+2*R.dd(),this.LEarP.y+2*R.dd()),p.line(-d.sW/2+2*R.dd(),this.ULP1.y+5*R.dd(),d.sW/2+2*R.dd(),this.URP1.y+2*R.dd()),p.line(-d.sW/2+2*R.dd(),this.ULP2.y+5*R.dd(),d.sW/2+2*R.dd(),this.URP2.y+2*R.dd()),p.line(-d.sW/2+2*R.dd(),this.ULP3.y+5*R.dd(),d.sW/2+2*R.dd(),this.URP3.y+2*R.dd()),p.line(-d.sW/2+2*R.dd(),this.CrP.y+5*R.dd(),d.sW/2+2*R.dd(),this.CrP.y+2*R.dd()),p.line(-d.sW/2+2*R.dd(),this.LLP1.y+5*R.dd(),d.sW/2+2*R.dd(),this.LRP1.y+2*R.dd()),p.line(-d.sW/2+2*R.dd(),this.LLP2.y+5*R.dd(),d.sW/2+2*R.dd(),this.LRP2.y+2*R.dd()),p.line(-d.sW/2+2*R.dd(),this.LLP3.y+5*R.dd(),d.sW/2+2*R.dd(),this.LRP3.y+2*R.dd()),p.line(-d.sW/2+2*R.dd(),this.LLP4.y+5*R.dd(),d.sW/2+2*R.dd(),this.LRP4.y+2*R.dd()),p.line(-d.sW/2+2*R.dd(),this.LLP5.y+5*R.dd(),d.sW/2+2*R.dd(),this.LLP5.y+2*R.dd()),p.line(this.cP.x+2*R.dd(),-d.sH/2,this.cP.x+2*R.dd(),d.sH/2),p.pop());let t,e,s,i=this.nK,r=[1,1],h=[0,0],a=this.c,n=0;p.noFill(),t=p5V.add(this.LEarP,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.ULP1,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.ULP1,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.ULP2,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.ULP2,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.ULP3,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.ULP3,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.CrP,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.CrP,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.URP3,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.URP3,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.URP2,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.URP2,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.URP1,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.URP1,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.REarP,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw();for(let d=0;d<4;d++)p.push(),p.scale(1-.05*d),t=p5V.add(this.REarP,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.LRP1,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.LRP1,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.LRP2,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.LRP2,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.LRP3,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.LRP3,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.LRP4,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.LRP4,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.LLP5,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.LLP5,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.LLP4,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.LLP4,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.LLP3,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.LLP3,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.LLP2,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.LLP2,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.LLP1,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.LLP1,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.LEarP,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),p.pop();a=this.orC,t=cV(this.LEyeP.x-this.LEyeW/2,this.LEyeP.y+R.dd()*i+15),e=cV(this.LEyeP.x+this.LEyeW/2,this.LEyeP.y+R.dd()*i+15),(s=new polyLine(t,e,n,a,r,h)).draw(),t=cV(this.REyeP.x-this.REyeW/2,1.5*this.REyeP.y+R.dd()*i+15),e=cV(this.REyeP.x+this.REyeW/2,1.5*this.REyeP.y+R.dd()*i+15),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.NdUP,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.NdLP,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw();for(let d=0;d<5;d++)p.push(),p.rotateY(.2*d),p.scale(1-.05*d),t=p5V.add(this.NdUP,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.NdLP,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),p.pop();a=this.orC,t=p5V.add(this.NdLP,cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.NLLP,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.MLP,cV(R.dd()*i,R.dd()*i)),e=p5V.add(cV(this.MLCP.x,this.MLCP.y+this.MH/2),cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(cV(this.MLCP.x,this.MLCP.y+this.MH/2*(1+.1*R.dd())),cV(R.dd()*i,R.dd()*i)),e=p5V.add(cV(this.MRCP.x,this.MRCP.y+this.MH/2*(1+.1*R.dd())),cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(cV(this.MRCP.x,this.MRCP.y+this.MH/2*(1+.1*R.dd())),cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.MRP,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(this.MRP,cV(R.dd()*i,R.dd()*i)),e=p5V.add(cV(this.MRCP.x,this.MRCP.y-this.MH/2*(1+.1*R.dd())),cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(cV(this.MRCP.x,this.MRCP.y-this.MH/2*(1+.1*R.dd())),cV(R.dd()*i,R.dd()*i)),e=p5V.add(cV(this.MLCP.x,this.MLCP.y-this.MH/2*(1+.1*R.dd())),cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),t=p5V.add(cV(this.MLCP.x,this.MLCP.y+this.MH/2),cV(R.dd()*i,R.dd()*i)),e=p5V.add(this.MLP,cV(R.dd()*i,R.dd()*i)),(s=new polyLine(t,e,n,a,r,h)).draw(),this.LEye.draw(a),this.REye.draw(a)}p.pop(),this.drawUnderSh(),this.drawShH()}drawUnderSh(){let t=this.nK+2*p.abs(p.sin(p.frameCount/50));p.push(),p.noStroke(),p.fill(p.gCwN(this.compC,.1,1)),p.translate(this.cP.x,this.cP.y),p.scale(R.n(.85,1.1)),p.beginShape(),p.vertex(R.dd()*t+this.LEarP.x,R.dd()*t+this.LEarP.y),p.vertex(R.dd()*t+this.ULP1.x,R.dd()*t+this.ULP1.y),p.vertex(R.dd()*t+this.ULP2.x,R.dd()*t+this.ULP2.y),p.vertex(R.dd()*t+this.ULP3.x,R.dd()*t+this.ULP3.y),p.vertex(R.dd()*t+this.CrP.x,R.dd()*t+this.CrP.y),p.vertex(R.dd()*t+this.URP3.x,R.dd()*t+this.URP3.y),p.vertex(R.dd()*t+this.URP2.x,R.dd()*t+this.URP2.y),p.vertex(R.dd()*t+this.URP1.x,R.dd()*t+this.URP1.y),p.vertex(R.dd()*t+this.REarP.x,R.dd()*t+this.REarP.y),p.vertex(R.dd()*t+this.LRP1.x,R.dd()*t+this.LRP1.y),p.vertex(R.dd()*t+this.LRP2.x,R.dd()*t+this.LRP2.y),p.vertex(R.dd()*t+this.LRP3.x,R.dd()*t+this.LRP3.y),p.vertex(R.dd()*t+this.LRP4.x,R.dd()*t+this.LRP4.y),p.vertex(R.dd()*t+this.LLP5.x,R.dd()*t+this.LLP5.y),p.vertex(R.dd()*t+this.LLP4.x,R.dd()*t+this.LLP4.y),p.vertex(R.dd()*t+this.LLP3.x,R.dd()*t+this.LLP3.y),p.vertex(R.dd()*t+this.LLP2.x,R.dd()*t+this.LLP2.y),p.vertex(R.dd()*t+this.LLP1.x,R.dd()*t+this.LLP1.y),p.endShape(),p.pop()}drawShH(){this.nK,p.push(),p.translate(this.cP.x,this.cP.y);let t,e,s,i,d,r,h,a,n,o,l=.1,c=[3,8],L=[-1.5,1.5],f=this.c;p.strokeWeight(.25);let u=.35;for(let m=0;m<1;m++){l=1e-4+1e-4*R.d(),r=50,h=(d=(t=this.LEarP.dist(this.ULP1))+(e=this.ULP1.dist(this.ULP2))+(s=this.ULP2.dist(this.ULP3))+(i=this.ULP3.dist(this.CrP)))/r,this.aP=p5V.lerp(this.LEarP,this.LEyeP,.9);for(let e=0;e<t/h;e++)a=p5V.lerp(this.LEarP,this.ULP1,l*R.dd()+e/(t/h)),n=p5V.lerp(this.aP,this.CrP,l*R.dd()+e/r),(o=new polyLine(a,n,201e-6,f,c,L,u)).draw();for(let s=0;s<e/h;s++)a=p5V.lerp(this.ULP1,this.ULP2,l*R.dd()+s/(e/h)),n=p5V.lerp(this.aP,this.CrP,l*R.dd()+(t/h+s)/r),(o=new polyLine(a,n,201e-6,f,c,L,u)).draw();for(let i=0;i<s/h;i++)a=p5V.lerp(this.ULP2,this.ULP3,l*R.dd()+i/(s/h)),n=p5V.lerp(this.aP,this.CrP,l*R.dd()+((t+e)/h+i)/r),(o=new polyLine(a,n,201e-6,f,c,L,u)).draw();for(let d=0;d<i/h;d++)a=p5V.lerp(this.ULP3,this.CrP,l*R.dd()+d/(s/h)),n=p5V.lerp(this.aP,this.CrP,l*R.dd()+((t+e+s)/h+d)/r),(o=new polyLine(a,n,201e-6,f,c,L,u)).draw();p.color(35,35,35,60),r*=.65,h=(t=this.LEyeP.dist(this.CrP))/r;for(let e=0;e<t/h;e++)a=p5V.lerp(this.LEyeP,this.CrP,l*R.dd()+e/(t/h)),n=p5V.lerp(this.NdUP,this.CrP,l*R.dd()+e/(t/h)),(o=new polyLine(a,n,201e-6,f,c,L,u)).draw();r*=.75,p.color(45,45,45,60),h=(t=this.NdUP.dist(this.CrP))/r;for(let e=0;e<t/h;e++)a=p5V.lerp(this.NdUP,this.CrP,l*R.dd()+e/(t/h)),n=p5V.lerp(this.REyeP,this.CrP,l*R.dd()+e/(t/h)),(o=new polyLine(a,n,201e-6,f,c,L,u)).draw();p.color(120,120,120,20),r*=.75,h=(d=(t=this.REarP.dist(this.URP1))+(e=this.URP1.dist(this.URP2))+(s=this.URP2.dist(this.URP3))+(i=this.URP3.dist(this.CrP)))/r,this.aP=p5V.lerp(this.REarP,this.REyeP,.9);for(let e=0;e<t/h;e++)a=p5V.lerp(this.REarP,this.URP1,l*R.dd()+e/(t/h)),n=p5V.lerp(this.aP,this.CrP,l*R.dd()+e/r),(o=new polyLine(a,n,201e-6,f,c,L,u)).draw();for(let s=0;s<e/h;s++)a=p5V.lerp(this.URP1,this.URP2,l*R.dd()+s/(e/h)),n=p5V.lerp(this.aP,this.CrP,l*R.dd()+(t/h+s)/r),(o=new polyLine(a,n,201e-6,f,c,L,u)).draw();for(let i=0;i<s/h;i++)a=p5V.lerp(this.URP2,this.URP3,l*R.dd()+i/(s/h)),n=p5V.lerp(this.aP,this.CrP,l*R.dd()+((t+e)/h+i)/r),(o=new polyLine(a,n,201e-6,f,c,L,u)).draw();for(let d=0;d<i/h;d++)a=p5V.lerp(this.URP3,this.CrP,l*R.dd()+d/(s/h)),n=p5V.lerp(this.aP,this.CrP,l*R.dd()+((t+e+s)/h+d)/r),(o=new polyLine(a,n,201e-6,f,c,L,u)).draw()}p.pop()}}function rUP(){const t=window.location.search,e=new URLSearchParams(t);let s;for(var i of e.entries())"ft"==(s=i[0].split("."))?d.ft=parseInt(i[1]):null!=s&&(d[s]=parseFloat(i[1]))}var fboA,fboC,fboD,fboE,p5V;let sketch=function(t){p5V=p5.Vector,t.gC=function(e,s=255,i="rand",d=0,r=.1,h=!0,a=pltArrC){let n=a[R.c(e)];cS="rand"==i?R.c(n):n[d%n.length];let o=t.color("#"+cS+t.hex(t.int(s)).slice(-2));return t.color(t.red(o)*(1+R.n(-r,r)),t.green(o)*(1+R.n(-r,r)),t.blue(o)*(1+R.n(-r,r)),s)},t.gCwN=function(e,s,i=1){return t.color(t.red(e)*(1+R.n(-s,s)),t.green(e)*(1+R.n(-s,s)),t.blue(e)*(1+R.n(-s,s)),t.alpha(e)*i)},t.sAP=function(){d.nF=R.c([1,1,1,1,1,1,1,2,2,3]),d.rA=[],d.rA2=[],d.rndNx=R.i(2,30),d.rndNy=R.i(2,30);for(let t=0;t<100;t++)d.rA.push(R.d());for(let t=0;t<100;t++)d.rA2.push(R.dd());d.pd=t.pixelDensity(),d.looping=!0,d.bgColor=t.gC(["bgColors"],255,"rand",0,.05,!0,pltArrBg),d.iH=R.sgn(),d.lnRotF1=0,d.lnNoiseK2=.1,d.recV=!1,d.HHv=.01,d.HH1v=.101,d.Wv=.02,d.shapeW=R.n(.005,.1)*d.sW,d.shapeNS=R.i(3,7),d.grid=[];let e=R.i(1,7),s=R.i(e<3?2:1,7),i=cV(R.sgn()*R.n(.01,.3)*d.sW,R.sgn()*R.n(.01,.3)*d.sH);d.gridStep=R.n(.5,1.25)*d.shapeW;for(let t=0;t<e;t++)for(let e=0;e<s;e++)d.grid.push(p5V.add(i,cV(d.gridStep*t,d.gridStep*e)));d.fnD=[5,5,5,15],d.MPLsSN=.1,d.MPLsN=.5,d.embNKF1=.00125,d.wKo=R.c([1,1,1,1,3,3,3,10,30]),d.texScale=R.c([.35,.5,.6,.5,.6,.6,.7]),d.fbmStrength=R.c([.01,.05,.075]),d.fbmStrengthFreqK=R.c([10,50,200,500]),d.coordWK=R.c([.05,.25,.5,1,1.5,2]),d.shAB=!0,d.shBW=!1,d.shBx=(-1)**R.c([0,1])*1.25,d.shBy=(-1)**R.c([0,1])*1.25,d.shK=R.c([.5,1,1,3,5]),d.shT=.5*R.dd(),d.shBlEqA=.98049,d.shBlEqB=.6549,d.shBlEqC=.2,d.shG=1.6857,d.shBr=.0182,d.shCon=.6651,d.st=!1,d.fK=R.c([.001,.005,.01,.1]),d.utK1=1.5,d.utK2=.69525,d.e0=R.c([0,1]),d.e1=1==d.e0?0:1,d.e2=R.c([.5,1,1,1,1.5,3])*(R.d()<.17?1:-1),d.qK=R.c([0,0,0,1]),rUP()},t.setup=function(){window.p=t,document.title="siempre en mí, siempre en ti - edition "+tD.tokenId,R=new Random,cV=t.createVector,d={},t.frameRate(9),d.globalAspectRatio=1,d.artW=1024,d.artH=d.artW/d.globalAspectRatio,d.fM=-1,d.fs=0,rUP(),d.csW=d.fs?t.windowWidth:t.min(t.windowWidth,t.windowHeight),d.csH=d.fs?t.windowHeight:d.csW,d.sW=d.artW,d.sH=d.artH,d.scale=d.csW/d.artW;let e={colorFormat:"float",preserveDrawingBuffer:!0,alpha:!0,premultipliedAlpha:!1};/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(d.pd/=2,d.csW=t.min(t.windowWidth,t.windowHeight),d.csH=d.csW,d.fM=4,d.scale=d.csW/d.artW,e.size={width:d.csW,height:d.csH,pixelDensity:d.pd}),document.body.style="background-color:black;margin:0;overflow:hidden;display:flex;justify-content:center;align-items:center;",t.sAP(),t.pixelDensity(d.pd),cnv=t.createCanvas(d.csW,d.csH,t.WEBGL),t.scale(d.scale),t.setAttributes({colorFormat:"float",preserveDrawingBuffer:!0}),fboA=t.createFramebuffer(e),fboC=t.createFramebuffer(e),fboE=t.createFramebuffer(e),sh=t.createShader(shv,shf),console.clear(),console.log("\n\n\t\tsiempre en tí, siempre en mí\n\t\t2023 Marcelo Soria - Rodríguez, @msoriaro\n\t\tCC BY - NC - SA 4.0, https://creativecommons.org/licenses/by-nc-sa/4.0/\n\t\t\n\t\tthanks for supporting Cure Alzheimer's Fund research to find a cure for Alzheimer's. Your support matters.\n\t\t\n\t\tpress s to save image\n\t\tpress v to start recording video, v again to finish and download(webm format) \n\t\tpress f to fast forward 100 frames\n\t\ttype youinme to see how we all carry each other within ourselves\n\t\t\n\t\tURL params (append with a trailing ? if it's the first parameter, & for the rest)\n\t\tappend &pd=N in live view URL to set pixel density to N(N > 2 increase resolution) \n\t\tappend &st=1 in live view URL to set the default view to seeing how we all carry each other within ourselves\n\t\tappend &fM=x with x a number to make the animation stop at that frame"),t.setupObjects()},t.shU=function(e){let s=1;for(let e=0;e<5;e++)s+=d.rA[e]*t.sin(t.frameCount*e/(100+d.fbmStrengthFreqK));s/=10,d.shBx=1.5*s,d.shBy=1.5*s,e.setUniform("tS",[d.shT*(1+.5*t.cos(t.frameCount/10))/d.sW*d.shK,d.shT*(1+.5*t.sin(t.frameCount/15))/d.sH*d.shK]),e.setUniform("u_aB",1==d.shAB),e.setUniform("u_dir",[d.shBx*d.scale,d.shBy*d.scale]),e.setUniform("t1",t.frameCount),e.setUniform("n",10*(1+10*R.d())),e.setUniform("t2",300*d.rA[30]+t.frameCount%1200),e.setUniform("u_pA",d.shBlEqA),e.setUniform("u_pB",d.shBlEqB),e.setUniform("u_pC",d.shBlEqC),e.setUniform("u_bw",1==d.shBW),e.setUniform("u_g",d.shG),e.setUniform("u_br",d.shBr),e.setUniform("u_con",d.shCon),e.setUniform("u_inv",d.shInv),e.setUniform("uScale",d.scale),e.setUniform("uPD",d.pd),e.setUniform("uR",d.rA),e.setUniform("uR2",d.rA2),e.setUniform("uRes",[d.csW,d.csH]),e.setUniform("utK1",d.utK1),e.setUniform("utK2",d.utK2),e.setUniform("kT1",10*s),e.setUniform("kT2",d.fbmStrength*(1.5+t.sin(3*d.rA2[5]+t.frameCount/20)**2)),e.setUniform("uvWK",d.coordWK*(1+.25*t.sin(3*d.rA2[4]+t.frameCount/130)**2)),e.setUniform("wK",d.wK),e.setUniform("embNK",d.embNK),e.setUniform("e0",d.e0),e.setUniform("e1",d.e1),e.setUniform("e2",d.e2),e.setUniform("fK",d.fK*s*4),e.setUniform("qK",d.qK)},t.touchStarted=function(){d.looping=!d.looping,d.looping?t.loop():t.noLoop()},t.recStop=function(t){var e=new Blob(t,{type:"video/webm"});const s=URL.createObjectURL(e),i=document.createElement("a");i.style="display: none;",i.href=s;let d=new Date(Date.now());i.download="siempre_en_mi_siempre_en_ti_"+tD.tokenId+"_when_"+d.toISOString()+"_hash_"+tD.hash+".webm",document.body.appendChild(i),i.click(),setTimeout(()=>{URL.revokeObjectURL(s),document.body.removeChild(i)},0)},t.sV=function(){if(d.recV)d.recV=!1,this.media_recorder.stop();else{const i={videoBitsPerSecond:1e7,mimeType:"video/webm; codecs=vp9"};d.recV=!0;var e=[],s=document.getElementById("defaultCanvas0").captureStream(9);this.media_recorder=new MediaRecorder(s,i),this.media_recorder.ondataavailable=(t=>{e.push(t.data)}),this.media_recorder.onstop=(()=>{t.recStop(e)}),this.media_recorder.start(1e3)}};var e=[];t.keyTyped=function(s){if("l"===s.key)d.looping=!d.looping,d.looping?t.loop():t.noLoop();else if("s"===s.key){let e=new Date(Date.now()),s="siempre_en_mi_siempre_en_ti_"+tD.tokenId+"_when_"+e.toISOString()+"_hash_"+tD.hash;s.split(":").join("-"),t.save(s+".png")}else"f"===s.key?t.frameCount+=100:"v"===s.key&&t.sV();let i=e.slice(-1)[0];"+"===s.key?("g"===i&&(d.shG*=1.05),"z"===i&&(d.shBr+=.015),"x"===i&&(d.shCon*=1.05),"n"===i&&(d.shBlEqC*=1.05),"k"===i&&(d.shT*=1.05),"b"===i&&(d.shBlEqA*=1.03,d.shBlEqB/=1.025)):"-"===s.key?("g"===i&&(d.shG/=1.05),"z"===i&&(d.shBr-=.015),"x"===i&&(d.shCon/=1.05),"n"===i&&(d.shBlEqC/=1.05),"k"===i&&(d.shT/=1.05),"b"===i&&(d.shBlEqA/=1.03,d.shBlEqB*=1.025)):e.push(s.key),"youinme"===e.join("").slice(-7)&&(d.st=!d.st)},theFaces=[],t.setupObjects=function(){let e,s,i,r,h;r=cV(0,0);for(let a=0;a<d.nF;a++)i=t.gC(["all"],R.n(150,180),"rand",0,.1,!0),r=p5V.add(r,cV(R.sgn()*R.n(1,2)*e,R.sgn()*R.n(.3,2)*s)),e=R.n(100,400),s=R.n(200,400),h=new aFace2(e,s,r,i,R.c(d.fnD)),theFaces.push(h);i=t.color(30,30,30,200);for(let s=0;s<d.grid.length;s++)r=d.grid[s],e=d.shapeW*(1+.15*R.dd()),nS=d.shapeNS,i=t.gC(["all"],R.n(100,150),"i",s,.1,!0),theFaces.push(new aPoly(e,nS,r,i))},t.windowResized=function(){t.resizeCanvas(t.windowWidth,t.windowHeight)},t.draw=function(){if (t.frameCount===d.fM) {(t.noLoop(),d.looping=!1)}d.embNK=0;for(let e=0;e<6;e++)d.embNK+=t.sin(6.2831853072*(2*e+1)*d.embNKF1*t.frameCount)/(e+1);d.embNK*=1.2732395447,d.wK=d.embNK*d.wKo,t.background(t.gCwN(d.bgColor,.015,.3329)),fboA.draw(()=>{for(t.clear(),t.scale(d.scale),t.background(t.gCwN(d.bgColor,.015,.97)),t._renderer.GL.disable(t._renderer.GL.DEPTH_TEST),t.push(),t.noStroke(),t.scale(d.texScale),t.texture(fboC.color),t.plane(t.width,-t.height),t.pop(),t.push(),t.fill(t.gCwN(d.bgColor,.05,.3329)),t.noStroke(),t.plane(t.width,t.height),t.pop(),t.push(),t.push(),m=d.nF+1;m<theFaces.length;m++)theFaces[m].draw();for(t.pop(),m=0;m<d.nF;m++)theFaces[m].draw();t._renderer.GL.enable(t._renderer.GL.DEPTH_TEST),t.pop()}),fboC.draw(()=>{t.push(),t.clear(),t.scale(d.scale),t.shader(sh),t.shU(sh),t.scale(1,-1),sh.setUniform("globalK",.9),sh.setUniform("uS",!1),sh.setUniform("tex0",fboA.color),t.rect(-d.sW/2,-d.sH/2,d.sW/2,d.sH/2),t.pop()}),fboE.draw(()=>{t.push(),t.clear(),t.shader(sh),t.shU(sh),sh.setUniform("u_br",.95*d.shBr),sh.setUniform("u_con",.95*d.shCon),sh.setUniform("u_g",.9*d.shG),sh.setUniform("globalK",.99),sh.setUniform("tex0",d.st?fboA.color:fboC.color),sh.setUniform("uS",!0),t.scale(.5,.5),t.rect(-d.sW/2,-d.sH/2,d.sW,d.sH),t.pop()}),t.push(),t.texture(fboE.color),t.noStroke(),t.plane(t.width,(d.st?-1:1)*t.height),t.pop()}};new p5(sketch);