0x4666fd1f…6b59sent to0xa7d8d9ef…d270·#15,268,153·view on Etherscan
is.miniCircle&&(this.p.fill(this.thirdColor),this.p.circle(this.x,this.y,this.size/2,this.size/2)),this.p.pop()}}var g=a;let k;const w=new URLSearchParams(window.location.search),y=Object.fromEntries(w.entries());let S,C;const m=1;let v,b,F,x,z,E,W,D,M;1*window.innerHeight>=window.innerWidth?(S=window.innerWidth,C=window.innerWidth/1):(C=window.innerHeight,S=1*window.innerHeight);let A=0,P=!0,B;const R=()=>{A===B?P=!1:0===A&&(P=!0),A<B&&P?A+=1:A>0&&!P&&(A-=1),v()},H=function(){const t=void 0;return!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)};function mouseClicked(){H()&&R()}function touchStarted(){R()}function setup(){b=createCanvas(S,C);const{pd:t=null}=y;t&&pixelDensity(Number(t)),D=new Array(5).fill(null).map((()=>createGraphics(S,C)));const[i,r,o,h]=D;M=D[4],angleMode(DEGREES),M.angleMode(DEGREES);const l=width/1e3;v=()=>{const{rnd:t,rangeFloor:p,pick:u,weighted:a}=e(tokenData.hash),calculateFeatures=()=>{const e={},i=p(s.length);e.palette=s[i],e.grid=[2,3,4,5,6][a([.05,.5,1,1,.2])],e.shapes=["min","mid","max"][a([1,.5,.3])];const r=t()>.95&&u([1,2]);return e.doubleStrokes=1===r,e.tripleStrokes=2===r,e.zoomed="min"!==e.shapes&&t()>.99,e.bundle=t()>.98,e.spirals=t()>.995,e.simple=t()>.9,e.miniature=!e.zoomed&&t()>.95,e.everyPoint=t()>.85,e.metro=t()>.95,e.fixedShapes=!!(e.everyPoint||t()>.9)&&p(2,e.grid+1),e.hidden=t()>.95,e.stepsRange=u(["max","mid","full"]),e.backRects1=t()>.2,e.backRects2=t()>.2,e},{palette:k,grid:w,shapes:y,doubleStrokes:S,tripleStrokes:C,zoomed:m,bundle:v,spirals:b,simple:P,fixedShapes:R,miniature:H,metro:I,everyPoint:L,stepsRange:O,backRects1:N,backRects2:V,hidden:q}=calculateFeatures(),G=w,X=w,Y=n(k,1*k.length);E=Y[0],z=Y[1],W=Y[2];const J=H?.3:.1,U=width*J,$=height*J,j=[2,4,8][a([1,1,.1])],T=void 0,_=(width-2*U)/(G*j),K=_;let Q=m?4:1;const Z=G*Q,tt=X*Q,et=(width-2*U)/Z,it=et,st={2:1.4,3:1.2,4:1,5:.8,6:.6};let rt=[];for(let t=0;t<Z;t+=1)for(let e=0;e<tt;e+=1)rt.push([t,e]);const ot=[];x=[];for(let e=U;e<=Math.ceil(width-U-1);e+=et)for(let i=$;i<=Math.ceil(height-$-1);i+=et){const s=e+et/2,r=i+it/2;let o="min"===y?.5:.3;w<4&&(o=.05),t()>o&&x.push(new g(M,s,r,et/2,Y[u([1,2])],E,W,Q,st[w],t()>.5,t()>.5,t()>.5))}const ht={2:3,3:5,4:9,5:9,6:9},nt={min:1,mid:3,max:10},lt="min"===y?w:G*Q*nt[y];if(L)for(let e=0;e<rt.length;e+=1){B=rt.length;const i=void 0;let s;s=t()>.5?e%2==0?R:1:R,s=2===w?2:s,ot.push(c(...rt[e],s,Z,tt,u,R<4))}else for(let t=0;t<lt;t+=1){let t;B=lt,t="full"===O?p(1,ht[w]):"mid"===O?p(Math.ceil(ht[w]/2),ht[w]):ht[w],R&&(t=R),ot.push(c(...u(rt),t,Z,tt,u))}const ct=u([5,10,20]),pt=u([1,2,4]);F=ot.map(((e,s)=>{const{finalPoints:n,centers:l,arcs:c}=f(e,et,it);let p=t()>.5,a=!p&&t()>.4;(v||s>ot.length-3)&&(p=!1,a=!1);let g=t()>.1;s<ot.length-3&&s>ot.length-6&&(g=!0);let k=!1;b&&s>ot.length-nt[y]*w&&(k=!0);const m=u([i,r,o,h]);let F=t()>.5,x=!F&&t()>.5,z=!x&&!F&&t()>.5;S&&(F=!0,x=!1),C&&(F=!1,x=!0),p||a||(g=!1),P&&(a=!1);const D=PI*et,M=D/ct,A=M*pt,B=t()*D*l.length;return new d(U,$,Q,n,c,l,Y[u([1,2])],E,u([W,E]),p,k,g,F,x,z,a&&m,st[w],t()>.9,!a&&t()>.6,u,I,M,A,B,q)})),background(z),D.forEach((t=>{t.background(z)}));const ft=void 0,ut=st[w]*l;for(let t=U;t<Math.ceil(width-U-1);t+=_)for(let e=$;e<Math.ceil(height-$-1);e+=_)i.push(),i.noFill(),i.strokeWeight(2.5*ut/(j/2)),i.stroke(E),i.rect(t,e,_,_),i.pop();for(let t=U;t<Math.ceil(width-U-1);t+=_/2)for(let e=$;e<Math.ceil(height-$-1);e+=_/2)r.push(),r.noFill(),r.strokeWeight(1.25*ut/(j/2)),r.stroke(E),r.rect(t,e,_,_),r.pop();for(let e=U;e<Math.ceil(width-U-1);e+=_/.5)for(let i=$;i<Math.ceil(height-$-1);i+=_/.5)N&&(o.push(),o.fill(Y[2]),o.strokeWeight(5*ut/(j/2)),o.stroke(E),o.rect(e,i,2*_,2*_),o.pop()),t()>.95&&(o.push(),o.noStroke(),o.strokeWeight(5*ut/(j/2)),o.stroke(N?z:W),o.fill(E),o.circle(e+_,i+K,_),o.pop());for(let e=U;e<Math.ceil(width-U-_);e+=_/.5)for(let i=$;i<Math.ceil(height-$-_);i+=_/.5)V&&(h.push(),h.fill(Y[1]),h.strokeWeight(5*ut/(j/2)),h.stroke(E),h.rect(e,i,2*_,2*_),h.pop()),t()>.95&&(h.push(),h.noStroke(),h.strokeWeight(5*ut/(j/2)),h.stroke(E),h.fill(W),h.circle(e+_,i+K,_),h.pop());x.forEach((t=>{t.draw()}));for(let t=0;t<B-A;t+=1){const e=void 0;F[t].draw(M)}image(M,0,0)},v()}let I=!0;const L=[1,2,3,4,5,6,7,8,9];let O=!1;function windowResized(){const t=void 0,e=b.canvas.style;let i,s;1*window.innerHeight>=window.innerWidth?(i=window.innerWidth,s=window.innerWidth/1):(s=window.innerHeight,i=1*window.innerHeight),e.position="absolute",e.display="block",e.top=e.left=e.right=e.structure="0",e.width=`${i}px`,e.height=`${s}px`}window.addEventListener("keydown",(t=>{L.includes(Number(t.key))&&(pixelDensity(Number(t.key)),v()),"s"===t.key&&saveCanvas(tokenData.hash,"png")," "===t.key&&(O?(clearInterval(O),O=!1):O=setInterval((()=>{R()}),200))}));