0x2f55e30c…96d5sent to0x99a9b7c1…b069·#18,245,824·view on Etherscan
p5.disableFriendlyErrors=!0;var R,DeS,DW,DH,DI,M,H,WW,WH,fi1,fi4,fi5,fi6,f1,f3,f4,ci,fm,shadow,fm4c,tn1,tn2,tn3,tn4,tn5,tn6,tn7,tn8,tn9,tn10,tn11,tn12,tn13,tn14,tn15,tn16,tn17,tn18,np1,np2,np3,np4,np5,np6,np7,np8,sd1,sd2,sd3,sd4,sd5,sd6,sd7,vts=`
precision mediump float;varying vec2 vTexCoord;attribute vec3 aPosition;attribute vec2 aTexCoord;void main(){vTexCoord=aTexCoord;vec4 po=vec4(aPosition,1);po.xy=po.xy*2.-1.,gl_Position=po;}
`,fgs3=`
precision mediump float;varying vec2 vTexCoord;uniform sampler2D ut;uniform float time,wv,stg1,stg2,stg3,stg4,stg5,stg6,stg7;uniform bool b1,b2,b3,b4,b5,b6,b7;void main(){vec2 xy=vTexCoord;xy.y=1.-xy.y;float i=.5;if(b1)xy.x+=sin(xy.y*pow(1.5,i)+xy.y*pow(1.4,i)+(time+wv)*.0075*i)*.15/i*stg1,xy.y+=cos(xy.x*pow(2.,i)+xy.x*pow(1.8,i)+(time+wv)*.0075*i)*(.2-pow(xy.y,1.)*.1)/i*stg1;i=1.;if(b2)xy.x+=tan(xy.y*pow(1.5,i)+xy.y*pow(1.4,i)+(time+wv)*.0075*i)*.15/i*stg2,xy.y+=cos(xy.x*pow(2.,i)+xy.x*pow(1.8,i)+(time+wv)*.0075*i)*(.2-pow(xy.y,1.)*.1)/i*stg2;i=1.5;if(b3)xy.x+=sin(xy.y*pow(1.5,i)+xy.y*pow(1.4,i)+(time+wv)*.0075*i)*.15/i*stg3,xy.y+=tan(xy.x*pow(2.,i)+xy.x*pow(1.8,i)+(time+wv)*.0075*i)*(.2-pow(xy.y,1.)*.1)/i*stg3;i=2.;if(b4)xy.x+=sin(xy.y*pow(1.5,i)+xy.y*pow(1.4,i)+(time+wv)*.0075*i)*.15/i*stg4,xy.y+=cos(xy.x*pow(2.,i)+xy.x*pow(1.8,i)+(time+wv)*.0075*i)*(.2-pow(xy.y,1.)*.1)/i*stg4;i=2.5;if(b5)xy.x+=sin(xy.y*pow(1.5,i)+xy.y*pow(1.4,i)+(time+wv)*.0075*i)*.15/i*stg5,xy.y+=cos(xy.x*pow(2.,i)+xy.x*pow(1.8,i)+(time+wv)*.0075*i)*(.2-pow(xy.y,1.)*.1)/i*stg5;i=3.;if(b6)xy.x+=sin(xy.y*pow(1.5,i)+xy.y*pow(1.4,i)+(time+wv)*.0075*i)*.15/i*stg6,xy.y+=cos(xy.x*pow(2.,i)+xy.x*pow(1.8,i)+(time+wv)*.0075*i)*(.2-pow(xy.y,1.)*.1)/i*stg6;i=3.5;if(b7)xy.x+=sin(xy.y*pow(1.5,i)+xy.y*pow(1.4,i)+(time+wv)*.0075*i)*.15/i*stg7,xy.y+=cos(xy.x*pow(2.,i)+xy.x*pow(1.8,i)+(time+wv)*.0075*i)*(.2-pow(xy.y,1.)*.1)/i*stg7;vec4 tt=texture2D(ut,xy);gl_FragColor=tt;}
`,fgs4=`
precision mediump float;varying vec2 vTexCoord;uniform sampler2D ut;uniform float ct_x,ct_y,rd,th;mat2 rot(float ag){float x=sin(ag),y=cos(ag);return mat2(y,-x,x,y);}void main(){vec2 xy=vTexCoord;xy.y=1.-xy.y;vec2 ct=vec2(ct_x,ct_y);float th2=distance(xy,ct);xy-=ct,th2=clamp(-th/rd*th2+th,0.,th),xy*=rot(th2),xy+=ct;vec4 tt=texture2D(ut,xy);gl_FragColor=tt;}
`,fgs5=`
precision mediump float;varying vec2 vTexCoord;uniform sampler2D ut;uniform float asr;uniform bool vrt;void main(){vec2 xy=vTexCoord;xy.y=1.-xy.y;float asr1=asr,asr2=1.;if(vrt)asr1=1.,asr2=asr;xy=vec2(floor(xy.x*10.*asr1),floor(xy.y*10.*asr2)),xy/=10.*asr;vec4 tt=texture2D(ut,xy);gl_FragColor=tt;}
`;class Random{constructor(){this.uA=!1;function t(t){let e=parseInt(t.substr(0,8),16),r=parseInt(t.substr(8,8),16),o=parseInt(t.substr(16,8),16),i=parseInt(t.substr(24,8),16);return function(){e|=0,r|=0,o|=0,i|=0;var t=(e+r|0)+i|0;return i=i+1|0,e=r^r>>>9,r=o+(o<<3)|0,o=(o=o<<21|o>>>11)+t|0,(t>>>0)/4294967296}}this.pA=new t(tokenData.hash.substr(2,32)),this.pB=new t(tokenData.hash.substr(34,32));for(let t=0;t<1e6;t+=2)this.pA(),this.pB()}r_d(){return this.uA=!this.uA,this.uA?this.pA():this.pB()}r_n(t,e){return t+(e-t)*this.r_d()}}class point{constructor(t,e,r,o){this.x=t,this.y=e,this.np7=r,this.np8=o}updCd(t){var e=+noise(this.x*np1*DeS,this.y*np2*DeS,t*np3)*this.np7/DeS*1,t=(noise(this.x*np4*DeS,this.y*np5*DeS,t*np6)-.5)*this.np8/DeS*1,r=Math.atan2(this.y-opy,this.x-opx);this.x+=e*Math.cos(r)+t*Math.cos(r+1.57),this.y+=e*Math.sin(r)+t*Math.sin(r+1.57)}}var opx,opy,pxlDns,CLV_N=50,clvp=[],r_cou=0;function setFeatP(){tn1=Math.floor(r(1,5.99)),print("Number of Four-Leaf Clovers",tn1),tn2=.5<r(0,1),tn3=Math.round(r(0,1)),tn4=r(20,140),tn5=r(0,1),tn6=2,tn7=Math.round(r(0,1)),tn8=Math.floor(r(0,2.99)),tn13=r(.1,.3)*Math.PI,.5<r(0,1)&&(tn13*=-1),tn9=Math.floor(r(1,5.99)),tn10=!0,tn11=r(3,30),tn12=1+.25*Math.floor(r(0,2.99)-1),tn14=r(0,1)<.05?2:Math.round(r(0,1)),tn15=Math.floor(r(0,2.99)),.3333<r(0,tn16=1)&&(tn16=5),.5<r(0,1)&&(tn16=1/tn16),tn17=.05<r(0,1)?0:Math.floor(r(1,5.99)),(tn18=r(0,1)<.01)&&(tn17=0),opy=opx=.5,np1=Math.pow(10,r(-3,-1)),np2=Math.pow(10,r(-3,-1)),np3=Math.pow(10,r(-2,-1)),np4=Math.pow(10,r(-3,-1)),np5=Math.pow(10,r(-3,-1)),np6=Math.pow(10,r(-2,-1)),np7=Math.pow(10,r(0,2)),np8=Math.pow(10,r(0,2))}function setup(){DeS=500,WH=window.innerHeight,WW=Math.round(.667*WH),window.innerWidth<WW&&(WW=window.innerWidth,WH=Math.round(WW/.667)),/Headless/i.test(navigator.userAgent)&&(WH=window.innerHeight,WW=window.innerWidth),(canvas=createCanvas(WW,WH)).position(0,0,"fixed"),canvas.style("z-index","-1"),prepDrawing(WW,WH,!1),drawWork(),noLoop()}function prepDrawing(t,e,o){DW=t,DH=e,DI=Math.min(DW,DH),M=DI/DeS,H=DI/2,pxlDns=1,colorMode(HSB,255),noStroke(),pixelDensity(pxlDns),(fi1=createGraphics(DeS,DeS)).noStroke(),fi1.pixelDensity(1),(f3=createGraphics(DeS,DeS,WEBGL)).colorMode(HSB,255),f3.noStroke(),f3.pixelDensity(pxlDns),ci=createImage(DW,DH),0==o&&((fm4c=createGraphics(DW,DH)).noStroke(),fm4c.pixelDensity(pxlDns)),(shadow=createGraphics(Math.round(.25*DW),Math.round(.25*DH))).pixelDensity(1),shadow.noStroke(),shadow.colorMode(HSB,255),R=new Random,print("hash",tokenData.hash),setFeatP(),noiseSeed(r(0,1e5));for(let t=0;t<CLV_N;t++)clvp[t]=new point(opx+r(-10,10),opy+r(-10,10),r(10,20),r(10,1e3));genBgLy1(),genShdw(),genCvs(),r_cou=0,genMp(o)}function drawWork(){image(fm,0,0)}function genBgLy1(){let t=createGraphics(DeS,DeS,WEBGL),e=t.createShader(vts,fgs3);1==tn15&&(e=t.createShader(vts,fgs4)),2==tn15&&(e=t.createShader(vts,fgs5)),fi1.colorMode(HSB,255),fi1.background(255),fi1.rectMode(CENTER),fi1.strokeWeight(3),fi1.stroke(0,20),4<=tn9&&fi1.noStroke();var h=r(0,1),d=Math.pow(10,r(-1,1)),x=Math.pow(10,r(-1,1));let c=Math.round(r(50,60)),w=Math.round(r(120,140)),M=(130<w&&(w=130),.5<r(0,1)&&(130<(c=Math.round(r(120,140)))&&(c=130),w=Math.round(r(50,60))),Math.round(r(50,60)));.5<r(0,1)&&(M=Math.round(r(120,130))),1==tn14&&(c=r(0,1)<.33?Math.round(r(50,60)):Math.round(r(110,120)),w=Math.round(r(180,230)),M=Math.round(r(50,130)),tn3=1);let y,u,o,i,v,n,a;var D=5.5;let s,l;y=Math.pow(10,r(-2.5,-1)),u=Math.pow(10,r(-2.5,-1)),o=Math.pow(10,r(-2.5,-1)),i=Math.pow(10,r(-2.5,-1)),v=Math.pow(10,r(-2.5,-1)),n=Math.pow(10,r(-2.5,-1)),a=Math.pow(10,r(-2.5,-1)),Math.pow(10,r(-2.5,-1)),s=0;for(let t=l=0;t<200;){var g,m,p=r(0,1)*DeS,W=r(0,1)*DeS;noise(p*y,W*u)>.5-l?(t++,fi1.push(),fi1.translate(p,W),.5<r(0,1)?fi1.blendMode(BURN):fi1.blendMode(MULTIPLY),fi1.fill(c+60*(noise(p*v,W*v)-.5),255+60*(noise(p*n,W*n)-.5),255+60*(noise(p*a,W*a)-.5),r(20,100)),g=Math.pow(noise(p*o,W*i)*D,4),m=Math.pow(noise(p*i,W*o)*D,4),p=Math.max(0,noise(p*d,W*x)-h)*r(30,60),fi1.drawingContext.filter="blur("+int(p)+"px)",fi1.ellipse(0,0,g*tn16,m/tn16),fi1.pop()):1e5<++s&&(s=0,l+=.1)}y=Math.pow(10,r(-3,-1)),u=Math.pow(10,r(-3,-1)),o=Math.pow(10,r(-3,-1)),i=Math.pow(10,r(-3,-1)),v=Math.pow(10,r(-2.5,-1)),n=Math.pow(10,r(-2.5,-1)),a=Math.pow(10,r(-2.5,-1)),Math.pow(10,r(-2.5,-1)),s=0;for(let t=l=0;t<200;){var S,b,f=r(0,1)*DeS,k=r(0,1)*DeS;noise(f*y,k*u)>.5-l?(t++,fi1.push(),fi1.translate(f,k),.5<r(0,1)?fi1.blendMode(BURN):fi1.blendMode(MULTIPLY),fi1.fill(M+60*(noise(f*v,k*v)-.5),255+60*(noise(f*n,k*n)-.5),255+60*(noise(f*a,k*a)-.5),r(50,100)),S=Math.pow(noise(f*o,k*i)+1,4)*D,b=Math.pow(noise(f*i,k*o)+1,4)*D,f=Math.max(0,noise(f*d,k*x)-h)*r(30,60),fi1.drawingContext.filter="blur("+int(f)+"px)",fi1.ellipse(0,0,3*S*tn16,3*b/tn16),fi1.pop()):1e5<++s&&(s=0,l+=.1)}y=Math.pow(10,r(-3,-1)),u=Math.pow(10,r(-3,-1)),o=Math.pow(10,r(-3,-1)),i=Math.pow(10,r(-3,-1)),v=Math.pow(10,r(-2.5,-1)),n=Math.pow(10,r(-2.5,-1)),a=Math.pow(10,r(-2.5,-1)),Math.pow(10,r(-2.5,-1));let L=250,H=255,C=20,P=100;1==tn3&&(L=r(100,120)+30,H=r(200,200)+30,C=100,P=200,1==tn14&&(L=r(100,140))),s=0;for(let t=l=0;t<100;){var V,N,_=r(0,1)*DeS,I=r(0,1)*DeS;noise(_*y,I*u)>.5-l?(t++,fi1.push(),fi1.translate(_,I),.3<r(0,1)?(0==tn3&&fi1.blendMode(BLEND),1==tn3&&fi1.blendMode(BLEND)):fi1.blendMode(MULTIPLY),fi1.fill(w,L+60*(noise(_*n,I*n)-.5),H+60*(noise(_*a,I*a)-.5),r(C,P)),V=Math.pow(noise(_*o,I*i)+1.1,4)*D,N=Math.pow(noise(_*i,I*o)+1.1,4)*D,_=Math.max(0,noise(_*d,I*x)-h)*r(30,60),fi1.drawingContext.filter="blur("+int(_)+"px)",fi1.ellipse(0,0,V*tn16,N/tn16),fi1.pop()):1e5<++s&&(s=0,l+=.1)}t.clear(),t.background(255),t.shader(e),e.setUniform("ut",fi1),0==tn15&&(e.setUniform("time",.3*r(0,1e3)),e.setUniform("wv",1),e.setUniform("stg1",r(.5,2)),e.setUniform("stg2",r(.5,3)),e.setUniform("stg3",r(.5,3)),e.setUniform("stg4",r(.5,3)),e.setUniform("stg5",r(.5,3)),e.setUniform("stg6",r(.5,3)),e.setUniform("stg7",r(.5,3)),e.setUniform("b1",.7<r(0,1)),e.setUniform("b2",.7<r(0,1)),e.setUniform("b3",.7<r(0,1)),e.setUniform("b4",.7<r(0,1)),e.setUniform("b5",.7<r(0,1)),e.setUniform("b6",.7<r(0,1)),e.setUniform("b7",.7<r(0,1))),1==tn15&&(e.setUniform("ct_x",r(-0,1)),e.setUniform("ct_y",r(-0,1)),e.setUniform("rd",4*Math.pow(10,r(-1,0))),e.setUniform("th",Math.pow(10,r(0,1)))),2==tn15&&(e.setUniform("asr",1+4*Math.floor(r(0,2.99))),e.setUniform("vrt",.5<r(0,1))),t.rect(0,0,DeS,DeS),t.resetShader(),fi1.image(t,0,0),chkfi1Bri()}function drawLf(e,o,d,x,t,c,i,n,a,w){e.blendMode(BLEND),e.strokeWeight(.5*M);var s=getId(Math.round(d*fi1.width),Math.round(x*fi1.height),fi1.width),i=(color(fi1.pixels[s+0],fi1.pixels[s+1],fi1.pixels[s+2]),e.colorMode(RGB,255),sin(i),Math.max(0,r(-100,100)));let l=.85*fi1.pixels[s+0]-i,p=.85*fi1.pixels[s+1]-i,f=.85*fi1.pixels[s+2]-i;isNaN(l)&&(l=0),isNaN(p)&&(p=0),isNaN(f)&&(f=0);let h=r(100,200);1==tn14&&(h=r(100,150)),4==n&&(h=1==tn14?150:200,l=.85*fi1.pixels[s+0],p=.85*fi1.pixels[s+1],f=.85*fi1.pixels[s+2],l+p+f<200&&(l,p,f,i=200/(l+p+f),l*=i,p*=i,f*=i)),20==n&&(a=r(.95,1),h=r(100,150),l=255,p=255,f=255,1==tn17&&(l=255,p=0,f=0),2==tn17&&(l=255,p=0,f=180),3==tn17&&(l=255,p=150,f=255),4==tn17&&(l=255,p=255,f=0),5==tn17&&(l=0,p=255,f=255)),isNaN(l)&&(l=0),isNaN(p)&&(p=0),isNaN(f)&&(f=0);for(let t=0;t<10;t++)e.fill(.1*l,.1*p,.1*f,12.75*tn12),e.noStroke(),e.push(),e.translate(r(2,5)*tn12*M,r(2,5)*tn12*M),drawLfSp(n,e,o,a),e.pop();if(0==tn14||2==tn14||20==n){s=r(7*-o,7*o),i=r(7*-o,7*o);let t=drawingContext.createRadialGradient(s,i,7*o,s,i,15*o);s=r(0,.5),i=1+s,s=1-.5*s;t.addColorStop(0,e.color(l*i,p*i,f*i,h)),t.addColorStop(1,e.color(l*s,p*s,f*s,h)),e.drawingContext.fillStyle=t,e.strokeWeight(.5*M),e.stroke(0,150),drawLfSp(n,e,o,a),Math.sqrt(Math.pow(d-.5,2)+Math.pow(x-.5,2));e.fill(l,p,f,h/5),e.noStroke();for(let t=0;t<5;t++)e.push(),e.translate(r(-5,5)*tn12*M,r(-5,5)*tn12*M),drawLfSp(n,e,o,a),e.pop()}else if(1==tn14){e.fill(255,255,255,.75*h),e.noStroke(),drawLfSp(n,e,o,a);i=r(7*-o,7*o),s=r(7*-o,7*o);let t=drawingContext.createRadialGradient(i,s,7*o,i,s,15*o);d=r(.25,1);t.addColorStop(0,e.color(l,p,f,h)),t.addColorStop(1,e.color(l*d,p*d,f*d,h)),e.drawingContext.fillStyle=t,e.noStroke(),drawLfSp(n,e,.85*o,a),e.noFill(),e.strokeWeight(.5*M),e.stroke(0,150),drawLfSp(n,e,o,a);e.fill(l,p,f,.2*h),e.noStroke();for(let t=0;t<5;t++)e.push(),e.translate(r(-5,5)*tn12*M,r(-5,5)*tn12*M),drawLfSp(n,e,o,a),e.pop()}if(4==n&&0==w){fm4c.blendMode(ADD),fm4c.fill(255,5);for(let t=0;t<50;t++)fm4c.push(),fm4c.translate(r(-5,5)*tn12*M*3,r(-5,5)*tn12*M*3),drawLfSp(n,fm4c,o,a),fm4c.pop();fm4c.blendMode(BLEND)}20==n&&(e.push(),e.rotate(Math.PI*r(.1,.4)),e.fill(150,200,150,h),e.strokeWeight(.25*M),e.stroke(0,150),drawLfSp(Math.round(.8*n),e,.75*o,a),e.pop(),e.push(),e.rotate(Math.PI*r(.1,.4)),e.fill(l,p,f,h),e.strokeWeight(.25*M),e.stroke(0,150),drawLfSp(Math.round(.6*n),e,.5*o,a),e.pop()),20!=n&&(e.blendMode(ADD),e.noFill(),e.strokeWeight(+o),e.stroke(l,p,f,.5*h),drawLfSp(n,e,.5*o,a))}function drawLfSp(e,o,i,n){var a;o.beginShape();let s=.38,l=.23,p,f=1;4==e&&(s=.47,l=.3),20==e&&(s=.7,l=.5),12<=e&&(f=5);var h=i;for(let t=0;t<e;t++)20==e&&(i=h*r(.95,1.05)),a=2*Math.PI/e,curveOrLineV(0,o,(p=calPnt1(f*i,a,t,-.5,n))[0],p[1]),0==t&&o.curveVertex(p[0],p[1]),curveOrLineV(0,o,(p=calPnt1(9*i,a,t,-s,n))[0],p[1]),e<=4&&2==tn14?(curveOrLineV(0,o,(p=calPnt1(14*i,a,t,1.2*-l,n))[0],p[1]),curveOrLineV(0,o,(p=calPnt1(15*i,a,t,.5*-l,n))[0],p[1]),curveOrLineV(0,o,(p=calPnt1(12.5*i,a,t,-.01,n))[0],p[1]),curveOrLineV(0,o,(p=calPnt1(12.5*i,a,t,.01,n))[0],p[1]),curveOrLineV(0,o,(p=calPnt1(15*i,a,t,.5*l,n))[0],p[1]),curveOrLineV(0,o,(p=calPnt1(14*i,a,t,1.2*l,n))[0],p[1])):(curveOrLineV(0,o,(p=calPnt1(15*i,a,t,-l,n))[0],p[1]),curveOrLineV(0,o,(p=calPnt1(17*i,a,t,0,n))[0],p[1]),curveOrLineV(0,o,(p=calPnt1(15*i,a,t,l,n))[0],p[1])),curveOrLineV(0,o,(p=calPnt1(9*i,a,t,s,n))[0],p[1]),curveOrLineV(0,o,(p=calPnt1(f*i,a,t,.5,n))[0],p[1]),t==e-1&&o.curveVertex(p[0],p[1]);o.endShape()}function curveOrLineV(t,e,o,i){r(0,1)>t?e.curveVertex(o,i):e.vertex(o,i)}function calPnt1(t,e,r,o,i){return x=t*cos(e*r+e*o),y=t*sin(e*r+e*o),[x=(x-.05*DW)*(y/(.1*DH)*(1-i)+i)+.05*DW,y]}function genMp(e){let o=createGraphics(DW,DH),i=(o.pixelDensity(pxlDns),o.colorMode(HSB,255),o.imageMode(CENTER),o.background(20,200,75),2e4);.5<r(0,1)&&(i=3e4),i/=tn12*tn12,i=Math.round(i);Math.pow(10,r(-3,-1)),Math.pow(10,r(-3,-1));fi1.loadPixels(),o.strokeWeight(.75*M*tn12),o.noFill();for(let t=0;t<CLV_N;t++)clvp[t].x=.5+r(-.2,.2),clvp[t].y=.5+r(-.2,.2);var t=r(30,80);for(let e=0;e<CLV_N;e++){o.stroke(t+100*(noise(+e)-.5),Math.min(200,150+100*(noise(2*e)-.5)),Math.min(200,200+100*(noise(3*e)-.5)),Math.min(200,200+200*(noise(4*e)-.5))),o.beginShape(),o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2),o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2);for(let t=0;t<10;t++)clvp[e].updCd(e),o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2);o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2),o.endShape()}for(let t=Math.round(.8*i);t<i;t+=1){var d=r(0,1),x=r(0,1),n=d*DW,c=x*DH,n=(o.push(),o.translate(n,c),getId(Math.round(d*fi1.width),Math.round(x*fi1.height),fi1.width)),c=(fi1.color(fi1.pixels[n+0],fi1.pixels[n+1],fi1.pixels[n+2]),r(-3.14,3.14)),n=r(.7,1),w=(o.rotate(c),M*r(1.2,.8)*.7*tn12);w*=Math.min(1,Math.pow(t/i,3)+.1),drawLf(o,w,d,x,t,i,c,3,n,e),o.pop()}if(tn10)for(let t=0;t<tn11;t++){var y=r(0,1),u=r(0,1),a=y*DW,s=u*DH,a=(getId(Math.round(a),Math.round(s),shadow.width),o.push(),o.translate(a,s),r(0,2*Math.PI)),s=(o.rotate(a),M*r(1.2,.8)*10*tn12*.075);s*=Math.min(1,Math.pow(1,3)+.1),drawLf(o,s,y,u,1,100,a,20,1,e),o.pop()}o.loadPixels(),o.stroke(50,150),o.strokeWeight(.5*M),o.colorMode(RGB,255),shadow.loadPixels(),o.rectMode(CENTER);for(let t=0;t<6e4/(tn12*tn12);t++){var v=Math.round(r(0,1)*DW),D=Math.round(r(0,1)*DH),l=getId(v*pxlDns,D*pxlDns,o.width*pxlDns),p=r(100,200),p=(o.fill(+o.pixels[l+0],+o.pixels[l+1],+o.pixels[l+2],p),2*M);let t=Math.round(.25*v);t>=shadow.width&&--t;var g=Math.round(.25*D),l=getId(t,g,shadow.width);(p=(p*=1-(shadow.pixels[l+0]+shadow.pixels[l+1]+shadow.pixels[l+2])/765)*tn12)/M<.3?o.stroke(50,150*p/M/.3):o.stroke(50,150),.1<p/M?o.rect(v,D,r(1,12)*p,r(1,12)*p):(r(1,12),r(1,12))}o.blendMode(ADD);for(let t=0;t<CLV_N;t++)clvp[t].x=.5+r(-.2,.2),clvp[t].y=.5+r(-.2,.2);o.noFill(),o.strokeWeight(.5*M);for(let e=0;e<CLV_N;e++)for(let t=0;t<10;t++){o.stroke(255,30*t),o.beginShape(),o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2),o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2);for(let t=0;t<10;t++)clvp[e].updCd(e),o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2);o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2),o.endShape()}for(let t=0;t<tn1;){var m=r(.1,.9),W=r(.1,.9),f=m*DW,S=W*DH,h=getId(Math.round(.25*f),Math.round(.25*S),shadow.width);240<=shadow.pixels[h+0]&&240<=shadow.pixels[h+1]&&240<=shadow.pixels[h+2]&&(t++,o.push(),o.translate(f,S),h=r(0,2*Math.PI),o.rotate(h),0==e&&(fm4c.push(),fm4c.translate(f,S),fm4c.rotate(h)),f=M*r(1.2,.8)*.7*tn12,f*=Math.min(1,Math.pow(1,3)+.1),drawLf(o,f,m,W,1,100,h,4,r(.7,1),e),o.pop(),fm4c.pop())}o.blendMode(HARD_LIGHT),o.image(o,.5*DW,.5*DH),o.image(ci,.5*DW,.5*DH),o.blendMode(MULTIPLY),o.image(shadow,.5*DW,.5*DH,DW,DH,0,0,shadow.width,shadow.height),o.blendMode(ADD);for(let t=0;t<CLV_N;t++)clvp[t].x=.5+r(-.2,.2),clvp[t].y=.5+r(-.2,.2);o.noFill(),o.strokeWeight(.5*M);for(let e=0;e<.2*CLV_N;e++)for(let t=0;t<10;t++){o.stroke(255,45*t),o.beginShape(),o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2),o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2);for(let t=0;t<10;t++)clvp[e].updCd(e),o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2);o.curveVertex(clvp[e].x*DW,clvp[e].y*DW+(DH-DW)/2),o.endShape()}if(o.blendMode(BLEND),4<=tn9){let t=20,e=100;5==tn9&&(t=140,e=75),o.colorMode(HSB,255),o.noStroke(),o.fill(t,255,255,e),o.blendMode(BURN),o.rect(.5*DW,.5*DH,DW,DH)}o.blendMode(ADD),tn18&&o.filter(GRAY),0==e?fm=o.get():o.save(tokenData.hash+".png"),o.remove()}function genShdw(){var e=shadow.width,o=shadow.height;shadow.background(0,0,0,r(125,175)),shadow.blendMode(ADD);let i=40;if(0==tn8){shadow.fill(255),shadow.quad(.5*e,.2*o,.8*e,.5*o,.5*e,.8*o,.2*e,.5*o),i=r(40,80)*tn6;for(let t=0;t<i;t++){shadow.strokeWeight(r(600/i,2400/i)*M/tn6);let t=tn4+100*r(-tn5,tn5);140<(t=t<20?20:t)&&(t=140),shadow.stroke(t,r(0,255)*tn7,255,50*tn6),shadow.line(r(.1*e,.9*e),.1*-o,r(.2*-e,1.2*e),1.1*o)}}if(1==tn8){shadow.noStroke(),shadow.rectMode(CENTER),shadow.translate(.5*e,.5*o),shadow.rotate(tn13),shadow.fill(255,255),shadow.rect(0,0,.8*e,1.5*o),i=r(40,80)*tn6;for(let t=0;t<i;t++){shadow.push(),shadow.translate(r(.5*-o,.5*o),0);let t=tn4+100*r(-tn5,tn5);140<(t=t<20?20:t)&&(t=140),shadow.fill(t,r(0,255)*tn7,255,(50+0*tn7)*tn6),shadow.rect(0,0,r(750/i,1500/i)*M/tn6,1.5*o),shadow.pop()}}if(2==tn8){shadow.fill(255),shadow.quad(.5*e,.2*o,.8*e,.5*o,.5*e,.8*o,.2*e,.5*o),shadow.fill(255,200);for(let t=0;t<2500*tn6;t++){var n=DeS*M*(1-Math.sqrt(r(0,1))),a=r(0,2*Math.PI),s=.5*e+cos(a)*n,l=.5*o+sin(a)*n,p=r(0,2);shadow.beginShape();for(let t=0;t<4+p;t++)shadow.curveVertex(s+r(-12*M,12*M),l+r(-12*M,12*M));shadow.endShape(OPEN)}}shadow.filter(BLUR,max(1,r(30,100)/i*M))}function genCvs(){var i=Math.max(1,Math.round(.5*M));ci.loadPixels();for(let o=0;o<ci.width;o+=i)for(let r=0;r<ci.height;r+=i){var n=random()-.5;for(let e=0;e<i;e++)for(let t=0;t<i;t++){var a=getId(o+e,r+t,ci.width);ci.pixels[a+0]=125+25*n,ci.pixels[a+1]=125+25*n,ci.pixels[a+2]=125+25*n,ci.pixels[a+3]=255}}ci.updatePixels()}function r(t,e){return r_cou++,R.r_n(t,e)}function getId(t,e,r){return 4*(t+e*r)}function drawReset(){fi1.remove(),f3.remove(),fm4c.remove(),shadow.remove(),setup()}function chkfi1Bri(){fi1.loadPixels();let r=0;for(let e=0;e<fi1.width;e++)for(let t=0;t<fi1.height;t++){var o=getId(e,t,fi1.width);fi1.pixels[o+0]+fi1.pixels[o+1]+fi1.pixels[o+2]<300&&r++}if(r>fi1.width*fi1.height*.5)for(let e=0;e<fi1.width;e++)for(let t=0;t<fi1.height;t++){var i=getId(e,t,fi1.width);fi1.pixels[i+0]+fi1.pixels[i+1]+fi1.pixels[i+2]<200&&(fi1.pixels[i+0]+=100,fi1.pixels[i+1]+=100,fi1.pixels[i+2]+=100)}fi1.updatePixels()}function windowResized(){/Headless/i.test(navigator.userAgent)||drawReset()}function keyPressed(){var t;"s"!=key&&"S"!=key||save(tn1+","+tokenData.hash+".png"),"F"!=key&&"f"!=key||(t=fullscreen(),fullscreen(!t)),"l"!=key&&"L"!=key||(blendMode(ADD),image(fm4c,0,0)),"1"==key&&prepDrawing(1600,2400,!0),"2"==key&&prepDrawing(3200,4800,!0),"3"==key&&prepDrawing(4800,7200,!0),"4"==key&&prepDrawing(6400,9600,!0),"5"==key&&prepDrawing(8e3,12e3,!0),"6"==key&&prepDrawing(9600,14400,!0),"7"==key&&prepDrawing(11200,16800,!0),"8"==key&&prepDrawing(12800,19200,!0)}function keyReleased(){clear(),drawWork()}function mousePressed(){}function mouseReleased(){}