0xb3b212da…19cbsent to0x99a9b7c1…b069·#15,854,873·view on Etherscan
r.forEach(((r,e)=>{vertex(r.x,r.y)})),endShape()})),drawingContext.restore()},gr=(r,e,n)=>{xr(r);let o=pr(r);const i=round(random(0,2));for(let r=0;r<i;r++)o=o.reduce(((r,e)=>r.concat(pr(e))),[]);o.forEach((r=>{er(r,e),sr(r,e,random(2*PI),n)})),drawingContext.restore()},pr=r=>{let e=0;r.forEach(((n,o)=>{let i=o<r.length-1?r[o+1]:r[0];e+=dist(n.x,i.x,n.y,i.y)}));const n=random(e/2),o=e/2+n;let i,a,t=[],s=[],l=0;return r.forEach(((e,h)=>{let m=h<r.length-1?r[h+1]:r[0];const d=dist(e.x,m.x,e.y,m.y);if(l+d>n&&l<n){const r=(n-l)/d;i={x:lerp(e.x,m.x,r),y:lerp(e.y,m.y,r)},t.push(e),s.push(i)}else if(l+d>o&&l<o){const r=(o-l)/d;a={x:lerp(e.x,m.x,r),y:lerp(e.y,m.y,r)},t.push(i),t.push(a),s.push(e)}else l<n||l>o?t.push(e):s.push(e);l+=d})),s.push(a),[t,s]},ur=(r,e,n,o)=>{xr(r);const i=P(["dots",10,"lines",10]),{a5:a,scaled:t}=n,s=random(4,8);let l=o&&random()>.5;if("lines"!==i||o){if("dots"===i){noStroke();for(let r=a.minX;r<a.b6;r+=s)for(let n=a.minY;n<a.b7;n+=s){let i=n;r%2==0&&(i+=s/2),fill(A(e.a4.h,20));let h=r/a.b6*t.a5.b6,m=i/a.b7*t.a5.b7,d=q(1.5);o&&(h+=random(-s,s)/4,m+=random(-s,s)/4,l&&(d=q(randomGaussian(1,1)))),circle(h,m,d)}}}else{stroke(R(e.a4.h,20)),V(.75);const r=random(2*PI),n=q(random(2,5));for(let o=a.minX;o<a.b6;o+=s)for(let i=a.minY;i<a.b7;i+=s){let l=i;o%2==0&&(l+=s/2),stroke(A(e.a4.h,20));const h=o/a.b6*t.a5.b6,m=l/a.b7*t.a5.b7;line(h-sin(r)*n/2,m-cos(r)*n/2,h+sin(r)*n/2,m+cos(r)*n/2)}}drawingContext.restore()},xr=r=>{r=rr(r,1),drawingContext.save(),drawingContext.beginPath(),r.forEach((r=>{drawingContext.lineTo(r.x,r.y)})),drawingContext.closePath(),drawingContext.clip()},fr=(r,e,n,o,i,a)=>{n=color(n),o=color(o),drawingContext.globalCompositeOperation=i;const t=width/.8;for(let i=0;i<1200*a;i++){let i=random(2*PI);const a=randomGaussian()>.5?n:o;a.setAlpha(random(.5,1)),fill(a),noStroke();const s=randomGaussian(0,t/2);let l=r+sin(i)*s,h=e+cos(i)*s;const m=q(abs(randomGaussian(.3,1)));if(wr(l,h,m),random()>.95){const n=random(3,10);for(let o=0;o<n;o++){let n=r+sin(i)*(s+m/2*o),a=e+cos(i)*(s+m/2*o);wr(n,a,m)}}}drawingContext.globalCompositeOperation="none"},wr=(r,e,n)=>{beginShape();for(let o=0;o<=18;o++){const i=2*PI/18*o,a=noise(o/5,e/M)*n,t=noise(r/M,o/5)*n;let s=r+sin(i)*n,l=e+cos(i)*n;s+=a,l+=t,vertex(s,l)}endShape()},kr=(r,e)=>{const n=P(["dot",20,"bigDot",1,"stroke",5]),o=R(e.a4.h,random(18,35));"dot"===n?(fill(o),noStroke(),r.forEach((r=>{circle(r.x,r.y,q(1.5))}))):"bigDot"===n?(fill(o),noStroke(),r.forEach((r=>{circle(r.x,r.y,q(2))}))):"stroke"===n&&(noFill(),stroke(o),V(1),r.forEach((r=>{circle(r.x,r.y,q(1.5))})))},vr=(r,e,n,o,i=1,a=1)=>{const t=e.area,s=e.perimeter,l=[n.a4.l,n.a4.h,n.a0,n.a1];let h=t/200;if(h<1)return!1;h>30&&(h=30),h*=a;let m,d,c=.1/o;c*=30/h,h=q(h),noStroke();let g=r[r.length-1],p=r[0],u=r[1],x=[{x:q(p.x),y:q(p.y)},{x:q(u.x),y:q(u.y)}],f=1,w=dist(p.x,p.y,u.x,u.y);for(let e=0;e<s;e+=1*c)round(e)%5!=0&&0!==e||fill(l[round(random(l.length-1))]),e>w&&(f++,p=u,u=r[f],g=r[f-2],x=[{x:q(p.x),y:q(p.y)},{x:q(u.x),y:q(u.y)}],w+=dist(p.x,p.y,u.x,u.y)),random()>1/8?dr(x,h,i,!0):(m=y(p.x,p.y,g.x,g.y)-PI/2,d=y(p.x,p.y,u.x,u.y)+PI/2,cr({x:q(p.x),y:q(p.y)},m,d,h,i,!0))},Lr=(r,e,n)=>{drawingContext.beginPath(),drawingContext.arc(r,e,n/2,0,2*PI,!1),drawingContext.fill(),drawingContext.closePath()},Sr=(r,e,n,o)=>{noStroke();const i=color(A(o.a4,15)),a=color(A(o.a4,15));r.forEach(((o,t)=>{if(t<r.length-1){const s=r[t+1],l=dist(o.x,o.y,s.x,s.y),h=floor(l/e);for(let r=0;r<h;r++){const e=lerp(o.x,s.x,r/h),t=lerp(o.y,s.y,r/h);fill(lerpColor(i,a,r/h)),circle(e,t,q(.75*n))}}}))},br=(r,e,n,o)=>{V(1.125);const i=color(A(o.a4,15)),a=color(A(o.a4,15));r.forEach(((n,o)=>{if(o<r.length-1){const t=r[o+1],s=dist(n.x,n.y,t.x,t.y),l=floor(s/e);for(let r=0;r<l;r++){const e=lerp(n.x,t.x,r/l),o=lerp(n.y,t.y,r/l),s=lerp(n.x,t.x,(r+.5)/l),h=lerp(n.y,t.y,(r+.5)/l);stroke(lerpColor(i,a,r/l)),line(e,o,s,h)}}}))},Cr=[{type:"dotted",spacing:[3,12],sz:[2,3]},10,{type:"dashed",spacing:[5,10],sz:[2,2.5]},10];let Pr={};const Hr=r=>{const e=r.b2([{b9:["writer",1],c1:["d2",10,"d3",10,"foldOver",10],shouldPerformReversion:["single",5,"none",10],a7:["tight",5],b8:[!1,5]},200,{b9:["geoPack",3,"megaPack",3,"sixPack",1],c1:["d5",10,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["distant",5],b8:[!0,5,!1,3]},500,{b9:["threeCircles",1],c1:["d5",10,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["veryverydistant",5],b8:[!0,5,!1,3]},300,{b9:["geoPack",6,"sixPack",1],c1:["d5",10,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["tight",5,"cover",25],b8:[!0,5]},1500,{b9:["circleArray",1],c1:["d5",10,"d2",25,"smallSmallSheers",10,"d4",10],shouldPerformReversion:["none",10],a7:["tight",1,"cover",1],b8:[!1,5]},600,{b9:["threeCircles",1],c1:["d4",10,"d2",35,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["veryverydistant",5],b8:[!1,5]},1e3,{b9:["geoPack",5,"sixPack",1],c1:["d4",10,"d5",10,"d3",15,"smallSmallSheers",10,"radial",10,"foldOver",10],shouldPerformReversion:["minimal",3,"none",12,"negminimal",3],a7:["onlycenter",5],b8:[!1,5]},500,{b9:["doubleSquare",1],c1:["d2",5],shouldPerformReversion:["none",10],a7:["adaptive",5,"onlycenter",5],b8:[!1,5]},1e3,{b9:["doubleSquare",1],c1:["d3",5],shouldPerformReversion:["minimal",3,"negminimal",2],a7:["distant",2,"tight",15],b8:[!1,5,!0,5]},600,{b9:["doubleSquare",1],c1:["d3",5],shouldPerformReversion:["single",1],a7:["tight",8,"distant",1],b8:[!1,5,!0,5]},1100,{b9:["flock",1],c1:["smallSmallSheers",15,"d4",5],shouldPerformReversion:["none",10],a7:["full",5],b8:[!1,5]},100,{b9:["flock",1],c1:["smallSmallSheers",15,"d4",5],shouldPerformReversion:["minimal",10],a7:["full",5],b8:[!0,5]},100]);let n=r.b2(["gum",1e3,"cloud",1e3,"montana",1e3,"briss",1200,"skull",1200,"zest",1e3,"dove",1e3,"cloak",1e3,"screentime",900,"feint",1100,"amused",1300,"exodus",1300,"method",1e3]),o=r.b2(["none",7,"exclusive",1]);const i={};return i.palette=n,i.colorMod=o,i.b9=r.b2(e.b9),i.c1=r.b2(e.c1),i.shouldPerformReversion=r.b2(e.shouldPerformReversion),i.a7=r.b2(e.a7),i.b8=r.b2(e.b8),i.fillDirection=r.b2(["random",5,"centered",5,"down",3,"uniform",5,"flippy",6]),i.gradientType=r.b2(["linear",5,"radial",5]),i.internalShadeMode=r.b2(["evenLines",5,"shattered",5,"perspective",5]),i.fillStrategy="individual",i.linesOnTop=r.b2(["top",20,"bottom",30,"NONE",1]),i.dripAmount=r.b2(["none",10,"alittle",50,"some",100,"alot",100,"worked",125]),i.secondaryGeometry=r.b2(["circle",50,"diamond",20]),i.d1Probability=r.b2(["none",5,"some",20,"alot",10]),i.backgroundLighting=r.b2(["linear-from-top",10,"linear-from-bottom",10,"random",5]),i.hasCanvasSpray=r.b2([!0,50,!1,1]),i.hasBorder=r.b2([!0,20,!1,3]),i.visualVertices=!i.b8&&r.b2([!0,5,!1,6]),i.hasSpillover="NONE",i.backfilled=r.b2(["down",6,"center-out",4,"center-in",4,"minimal",15,"none",5]),i.renderSecondaryPolys="none"!==i.shouldPerformReversion,i.oneLastSkewTho=r.b2([!0,10,!1,15]),"flock"===i.b9&&(i.backfilled="none"),("screentime"===i.palette||"wavelet"===i.palette||"exodus"===i.palette||i.shouldPerformReversion)&&(i.colorMod="none"),"zest"===i.palette&&"exclusive"===i.colorMod&&(i.backfilled="none"),Pr=i,i};const Yr=(r,e,n,o,i,a,t)=>new Er(r,e,n,o,i,a,t);class Er{constructor(r,e,n,o,i,a,t=!0){for(this.loc=r,this.dir=e,this.speed=n,this.life={curr:0,max:random(240,360),fadeTime:random(30,60),deadTime:random(15,45),alive:a},this.color1=color(o),this.color2=color(i),this.size=abs(randomGaussian(.8,1.2)),this.expandStart=random(.7,.9),this.minLineSize=abs(constrain(randomGaussian(.5,.25),.4,.7)),this.lifespan=a?30:1+abs(randomGaussian(0,3)),this.positions=[{x:r.x,y:r.y,size:this.size}],this.shouldSplatter=t;this.lifespan>0;)this.lifespan--,this.move();a||this.draw()}restart(){this.size=abs(randomGaussian(.9,1.45)),this.lifespan=random(10,50),this.life={curr:0,max:this.lifespan*(1-this.speed+1),fadeTime:random(60,90),deadTime:random(15,45),alive:!0},this.loc=createVector(random(0,width),random(0,height)),this.positions=[{x:this.loc.x,y:this.loc.y,size:this.size}];let r=get(this.loc.x,this.loc.y);for(this.color2=this.color1=color(Ir(r[0],r[1],r[2])),this.shouldSplatter&&Xr(this.loc.x,this.loc.y,Ir(r[0],r[1],r[2]),8,50);this.lifespan>0;)this.lifespan--,this.move()}move(){let r=20*noise(this.loc.x/100/M,this.loc.y/100/M,0)*TWO_PI;this.dir.x=cos(r)*M*.75,this.dir.y=10*M;var e=this.dir.copy();e.mult(1*this.speed),this.loc.add(e),this.positions.push({x:this.loc.x,y:this.loc.y,size:this.size})}tick(){this.life.curr++,this.life.curr<this.life.max+this.life.fadeTime+this.life.deadTime?this.draw():this.restart()}draw(){stroke(this.color1);const r=this.positions.length;let e=1;this.life.alive&&this.life.curr>this.life.max+this.life.deadTime&&(e=1-(this.life.curr-this.life.max-this.life.deadTime)/this.life.fadeTime),this.positions.every(((n,o)=>{if(this.life.alive&&o>this.positions.length*this.life.curr/this.life.max)return!1;if(o<r-1){const i=this.positions[o+1];let a=n.size*this.minLineSize;if(o/r>this.expandStart){const e=(o/r-this.expandStart)/(1-this.expandStart);a=n.size*this.minLineSize+n.size*(1-this.minLineSize)*e}V(a);let t=lerpColor(this.color1,this.color2,o/r);1!==e&&t.setAlpha(e),stroke(t),line(n.x,n.y,i.x,i.y)}return!0}))}}const Xr=(r,e,n,o=10,i=35)=>{let a=random(10,30),t=q(random(o,i));for(let o=0;o<4*a;o++){const o=random(2*PI),i=randomGaussian(0,t/2);let a=r+sin(o)*i,h=e+cos(o)*i;const m=q(random(.2,1));if(fill(A(n,10)),noStroke(),wr(a,h,m),random()>.95){const r=0;var s=createVector(cos(r),sin(r)),l=abs(randomGaussian(0,.15));let e=get(a,h),o=Ir(e[0],e[1],e[2]),i=n;const t=createVector(a,h,2);Yr(t,s,l,o,i)}}};function Ir(r,e,n){r/=255,e/=255,n/=255;let o=Math.min(r,e,n),i=Math.max(r,e,n),a=i-o,t=0,s=0,l=0;return t=0==a?0:i==r?(e-n)/a%6:i==e?(n-r)/a+2:(r-e)/a+4,t=Math.round(60*t),t<0&&(t+=360),l=(i+o)/2,s=0==a?0:a/(1-Math.abs(2*l-1)),s=+(100*s).toFixed(1),l=+(100*l).toFixed(1),[t,s,l]}const Gr=(r,e,n)=>{const i=m(ue);r.forEach(((r,a)=>{const t=e.a4Polygons[a];let{a5:s}=we[a];const l=he/100,h=s.width>l&&s.height>l;let m=0,d=!1;if("alittle"===n&&t.d6&&random()>.5?(d=!0,m=random(2,8)):"some"===n&&(t.d6&&random()>.2||random()>.8)?(d=!0,m=random(6,12)):"alot"===n&&random()>.4?(d=!0,m=random(8,20)):("worked"===n|