memoscan
← all memos

Memo 0x7bf03b1b…9d869f on Ethereum

function J(e,x,C){push(),translate(e,x);let D,N,j,q,J,ee,oe=[],re=[],te=!0,le=!0;switch(n){case 0:te=!1,D=0,N=0,j=0;break;case 1:D=U(.15,.25,3),N=U(1,5,3),j=$(.02,.06),c=X(-1,1,[600,200,200]);break;case 2:D=$(.6,.8),N=10,j=.1;break;case 3:D=1,N=10,j=.16;break;case 4:D=1,N=5,j=.06}switch(i){case 0:le=!1,q=0,J=0,ee=0;break;case 1:q=U(.15,.25,3),J=U(1,5,3),ee=$(.02,.06),h=X(-1,1,[6,2,2]);break;case 2:q=$(.6,.8),J=10,ee=.1;break;case 3:q=1,J=10,ee=.16;break;case 4:q=1,J=5,ee=.06}oe=M?[...Q[o]]:[...T[o]],re=p?[...Q[r]]:[...T[r]],u&&oe.reverse(),k&&re.reverse();let ae,se=I*C,ne=Math.round(C/se),ie=Array.from(Array(ne).keys()),ce=.19;ae=f?map(E,0,1,.16,ce):map(E,0,1,.08,.11);let he=C*ae,ue=.65+$(0,1.25*m),ke=C*$(.2,.22)*.001,de=C*(.016*ae-.001),be=-de;u!=k&&(de*=-1),colorMode(HSB),R*=(Z()<.5?-1:1)*!H;let fe=_(-1,2)*!H,ge=B+!H*(Z()<.5?-1:1)*_(4,6)*10,Me=B+R,pe=B-R,Se=color(Me,z,L),xe=color(pe,z,L),He=color(ge+3*R,z,L),Ce=color(ge+!H*fe*_(0,3)*10,w+$(-10,10),v),Be=color(ge+!H*fe*_(0,3)*10,w+$(-10,10),v);colorMode(HSL),Ce=color(hue(Ce),saturation(Ce),W),Be=color(hue(Be),saturation(Be),W),colorMode(RGB);let we=Z()<.5?He:lerpColor(Se,xe,.5);colorMode(HSB);let ve=color(0,0,0,.2),We=color(0,0,0,.08);O(ie,m);let Re,ze,Le,me,Ee,Fe,Ge,Ie,ye,Ye,Ae,Ve,De=2*se,Te=0,Qe=0;switch(noFill(),a){case 0:K(0,0,C,C,Ce,Be,"Y",$(1,3));break;case 1:K(0,0,C,C,Be,Ce,"Y",$(1,3));break;case 2:Te=$(.2,.6),Ye=_(80,120);case 3:Te<.1&&(Te=.04,Ye=_(80,120)),K(0,0,C,C,Ce,Be,"Y",$(1,3));for(let e=0;e<Ye;e++){let e=$(.1,5),o=U(.01,Te,2);colorMode(HSB);let r=color(hue(we)+10*_(-10,10)*!H,.5*saturation(we),brightness(we),o),t=$(40*-se,40*se),l=C*$(.01,.3);strokeWeight(De*e),ye=De*$(-.25,4),Re=Z()<.5?$(0,C):_(0,2)*C,ze=Re%C==0?$(0,C/2):0,Le=Re+t,me=ze+l,Ee=Z()<.5?$(0,C):_(0,2)*C,Fe=Ee%C==0?$(C/2,C):C,Ge=Ee-t,Ie=Fe-l,strokeWeight(ye),stroke(r),bezier(Re,ze,Le,me,Ge,Ie,Ee,Fe)}break;case 4:Te=$(.4,.8);case 5:Te<.1&&(Te=.08),Ye=_(20,60),colorMode(HSL),Qe=_(-1,2),Ce=color(hue(Ce)+Qe*U(0,180,5)*!H,saturation(Ce),W),Be=color(hue(Be)+Qe*U(0,180,5)*!H,saturation(Be),W),colorMode(HSB),K(0,0,C,C,Be,Ce,"Y",$(1,3));for(let e=0;e<Ye;e++){let e=$(.1,20),o=U(.01,Te,2);colorMode(HSL);let r=color(hue(we)+5*_(-20,20)*!H,1*saturation(we),$(50,95),o);colorMode(HSB);let t=0,l=C*$(.01,.3);strokeWeight(De*e),ye=De*$(-.25,4),Re=Z()<.5?$(0,C):_(0,2)*C,ze=Re%C==0?$(0,C/2):0,Le=Re+t,me=ze+l,Ee=Z()<.5?$(0,C):_(0,2)*C,Fe=Ee%C==0?$(C/2,C):C,Ge=Ee-t,Ie=Fe-l,strokeWeight(ye),stroke(r),bezier(Re,ze,Le,me,Ge,Ie,Ee,Fe)}break;case 6:0==s||1==s||b&&!S?(Te=.05,Ye=_(50,200),Ae=.5):(Te=$(.15,.3),Ye=_(50,100),Ae=1),colorMode(HSL),Qe=_(-1,2),Ce=color(hue(Ce)+Qe*U(0,180,5)*!H,saturation(Ce)*Ae,v),Be=color(hue(Be)+Qe*U(0,180,5)*!H,saturation(Be)*Ae,v),colorMode(HSB),K(0,0,C,C,Be,Ce,"Y",$(1,3));for(let e=0;e<Ye;e++){Qe=2*_(0,2)-1;let e=U(0,Te,2);colorMode(HSL);let o=color(hue(we)+Qe*U(0,20,2.5)*8*!H,1*saturation(we),$(50,95),e);colorMode(HSB),noStroke();let r=.05*C*U(3,16,2);fill(o),ellipseMode(CENTER),circle(.5*C+Qe*U(0,.5*C,1),.55*C+Qe*U(0,.45*C,3),r)}}angleMode(DEGREES),d&&(translate(C,0),rotate(90));let Ue=U(0,8,1),Xe=_(0,12),Ne=g+1,Pe=Z()<.5,je=[];for(let e=0;e<l;e++)je.push($(-(ce-ae),ce-ae)*C*1.5);noFill();for(let e=0;e<Ne;e++)for(let o=e;o<ne;o+=Ne){let e,r,a,s,n,i,M,p,S,x,B,w,v;switch(curIndexLeft=Math.round(o/ne*oe.length),curIndexRight=Math.round(ie[o]/ne*oe.length),Pe?(r=ie[o]*se+.125*se,a=o*se+.625*se,e=he+oe[curIndexRight]*ke+de*ie[o],s=Math.round(C-he-re[curIndexLeft]*ke+be*o)):(r=o*se+.125*se,a=ie[o]*se+.625*se,e=he+oe[curIndexLeft]*ke+de*o,s=Math.round(C-he-re[curIndexRight]*ke+be*ie[o])),n=(s-e)*ue,i=color(Me,z,L),M=color(pe,z,L),B=$(.5*-G,G)*!H,w=$(-G,1.8*G)*!H,v=$(.5*-G,G)*!H,colorMode(HSB),i.setGreen(green(i)+B),i.setBlue(blue(i)+w),i.setRed(red(i)+v),M.setGreen(green(M)+B),M.setBlue(blue(M)+w),M.setRed(red(M)+v),t){case 0:x=lerpColor(Se,xe,.5),p=i,S=M;break;case 1:x=i,p=i,S=M;break;case 2:x=M,p=i,S=M;break;case 3:x=i,p=i,S=i;break;case 4:x=M,p=M,S=M;break;case 5:i=color(hue(i)+(Z()<.5?-1:1)*(U(3,18,1)*!H),saturation(i),brightness(i)),M=color(hue(M)+(Z()<.5?-1:1)*(U(3,18,1)*!H),saturation(M),brightness(M)),x=Z()<.5?i:M,p=i,S=M;break;case 6:i=color(hue(i)+(Z()<.5?-1:1)*(U(3,6,1)*!H),saturation(i)+_(-30,-40),brightness(i)),M=color(hue(M)+(Z()<.5?-1:1)*(U(3,6,1)*!H),$(20,50),brightness(M)),x=Z()<.5?i:M,p=i,S=M;break;case 7:i=color(hue(i),_(0,100)*!H,Ue+_(-Xe,Xe)),M=color(hue(M),_(0,100)*!H,Ue+_(-Xe,Xe)),x=i,p=i,S=M;break;case 8:i=color(hue(i),_(50,100)*!H,100+_(-Xe,Xe)),M=color(hue(M),_(50,100)*!H,100+_(-Xe,Xe)),colorMode(HSL),i=color(hue(i),saturation(i),100-_(0,Ue)),M=color(hue(M),saturation(M),100-_(0,Ue)),x=i,p=i,S=M,colorMode(HSB);break;default:x=lerpColor(i,M,.5),p=i,S=M}b||(i=color(hue(i)+(Z()<.5?-1:1)*_(3,7),saturation(i)+_(-30,-40)*!H,brightness(i)),M=color(hue(M)+(Z()<.5?-1:1)*_(3,7),$(20,50)*!H,brightness(M)),x=Z()<.5?color(hue(x)+$(-180*V,180*V),saturation(x)*!H,brightness(x)):Z()<.5?i:M);let W=.0015*C;colorMode(RGB),p=lerpColor(Ce,p,F),S=lerpColor(Ce,S,F),colorMode(HSB),Ve=x,stroke(x),strokeWeight(W),noFill();let I=Math.abs(ne/2-o)/(ne/2);if(f||I<E||!b)if(0==l){let o=s+1.5*W,t=e-1.5*W,l=a,i=r;stroke(We),strokeWeight(1.5*W),bezier(t,i+W,t+n,i+W,o-n,l+W,o,l+W),stroke(x),strokeWeight(W),bezier(t,i,t+n,i,o-n,l,o,l)}else{let o=_(1,l+1),t=Math.round(o*(ne/(l+1))),n=he+oe[t]*ke+de*t,i=Math.round(C-he-re[t]*ke+be*t),c=.1*(i-n)*ue*$(1-.2*m,1+.2*m),h=(n+i)/2+$(-c,c)*m*.3+je[o-1],u=C/(l+1)*o;stroke(We),strokeWeight(1.5*W),beginShape(),vertex(e-1.5*W,r+W),bezierVertex(h+c,r+W,h+c,u-c*(r/C/2)+W,h,u+W),bezierVertex(h-c,u+c*(r/C/2)+W,h-c,a+W,s,a+W),vertex(s+1.5*W,a+W),endShape(),stroke(x),strokeWeight(W),beginShape(),vertex(e-1.5*W,r),bezierVertex(h+c,r,h+c,u-c*(r/C/2),h,u),bezierVertex(h-c,u+c*(r/C/2),h-c,a,s,a),vertex(s+1.5*W,a),endShape()}if(stroke(x),b){noStroke(),fill(ve),triangle(e,r,e-.75*se,r,e-.75*se,r+.5*se),triangle(s,a,s+.75*se,a,s+.75*se,a+.5*se),fill(x),triangle(e,r,e-.75*se,r-.25*se,e-.75*se,r+.25*se),triangle(s,a,s+.75*se,a-.25*se,s+.75*se,a+.25*se)}else noStroke(),fill(ve),circle(e,r+.125*se,.375*se),circle(s,a+.125*se,.375*se),fill(x),circle(e,r,.375*se),circle(s,a,.375*se);if(b){fill(ve),noStroke(),rect(0,r-.25*se,e-.75*se,.75*se),noFill(),stroke(x),P(drawingContext,Math.round(e-13*se/16),r,0,r,x,p,se/2);let o=he+oe[0+u*(oe.length-1)]*ke+.15*C,l=C-he-re[0+k*(oe.length-1)]*ke-.15*C,n=r<C/2;if(g&&Z()<y&&(r<o&&te||r>l&&le)){let e,o,l,a,s,i,b,f,g,M,p=7==t?1:U(.4,1,1),S=color(hue(Ve)+$(-R,R)*!H,1*saturation(Ve),1*brightness(Ve),p),x=color(hue(ve),saturation(ve),brightness(ve),alpha(ve)*p),B=C*(A+A*$(-.4*Y,3*Y)),w=Math.round(r+se/4);n?(g=$(c*se*N,se*N),M=$(-se*N,c*se*N),e=w-.1*C,o=.02*-C,l=w+g-.1*C,a=D*C*.25-.001*C,b=w+M-j*C-.1*C,f=D*C*.75,s=w-j*C-.1*C,i=D*C+$(D*c*-.15*C,.15*D*C)):(g=$(-se*J,h*se*J),M=$(h*se*J,se*J),e=w+.1*C,o=.02*-C,l=w+g+.1*C,a=q*C*.25-.001*C,b=w+M+ee*C+.1*C,f=q*C*.75,s=w+ee*C+.1*C,i=q*C+$(q*h*-.15*C,.15*q*C)),strokeWeight(B),stroke(x),strokeCap(SQUARE),noFill(),(n&&u||!n&&k)&&applyMatrix(1,0,0,-1,0,C),bezier(e+se/16,o,l+se/16,a,b+se/16,f,s+se/16,i),stroke(S),bezier(e,o,l,a,b,f,s,i),(n&&u||!n&&k)&&(resetMatrix(),d&&(translate(C,0),rotate(90)))}fill(ve),noStroke(),rect(s+.75*se,a-.25*se,C,.75*se),noFill(),stroke(x),P(drawingContext,Math.round(s+13*se/16),a,C,a,x,p,se/2)}}pop()}function K(e,o,r,t,l,a,s,n){if(noFill(),strokeWeight(1.5),colorMode(RGB),"Y"==s)for(let s=o;s<=o+t;s++){var i=map(s,o,o+t,0,1),c=lerpColor(l,a,Math.pow(i,n));stroke(c),line(e,s,e+r,s)}else if("Xlr"==s)for(let s=e;s<=e+r;s++){var h=map(s,e,e+r,0,1),u=lerpColor(l,a,Math.pow(h,n));stroke(u),line(s,o,s,o+t)}else if("Xrl"==s)for(let s=e;s>=e-r;s--){var k=map(s,e,e-r,0,1);u=lerpColor(l,a,Math.pow(k,n));stroke(u),line(s,o,s,o+t)}colorMode(HSB)}function O(e,o){for(let r=0;r<e.length;r++){let t=r-Math.round(r*o),l=r+Math.round((e.length-1-r)*o);const a=Math.round($(t,l));[e[r],e[a]]=[e[a],e[r]]}}function Z(){return D^=D<<13,D^=D>>17,D^=D<<5,(D<0?1+~D:D)%1e3/1e3}function $(e,o){return void 0===o&&(o=e,e=0),Z()*(o-e)+e}function _(e,o){return void 0===o&&(o=e,e=0),Math.floor($(e,o))}