memoscan
← all memos

Memo 0x7ba523cc…8f2673 on Ethereum

F.push(()=>{hxOut(bgst),hx6TriLine(bgst),hx6TriFill([R.RC(p),R.RC(p),R.RC(p),R.RC(p),R.RC(p),R.RC(p)])}),F.push(()=>{let h=[];for(let t=0;t<5;t++)h[t]=R.RC(p);hxRepeat(h,.1)}),F.push(()=>{hxSingDiam(R.RC(p),bgst)}),F.push(()=>{hxDoubDiam(R.RC(p),R.RC(p),bgst)}),F.push(()=>{hxSingSq(R.RC(p)),hxDoubTail(bgst)}),F.push(()=>{hxDoubSq(R.RC(p),R.RC(p)),hxDoubTail(bgst)}),F.push(()=>{hxFill(R.RC(p))}),F.push(()=>{static(function(){return R.RC(p)})}),F.push(()=>{static(function(){return stct%2==0?color(0):bg},apsCkSz)}),F.push(()=>{static(function(){return stct%2==0?color(0):bg},100*R.RI(apsCkMn,apsCkMx))}),F.push(()=>{static(function(){return stct%2==0?R.RC(p):bg},apsCkSz)}),F.push(()=>{let h=R.RC(p);static(function(){return stct%2==0?h:bg},apsCkSz)}),F.push(()=>{push();for(let h=0;h<=2;h++)d3Diam(R.RC(p)),rotate(p23);pop(),hx3dOut(bgst)})}let L=[];function SAL(){for(let h=0;h<p.length;h++)L.push(()=>{hxOut(p[h])}),L.push(()=>{hxMultLine(p[h],13)}),L.push(()=>{hxMultLine(p[h])}),L.push(()=>{hxMultLine(p[h],7)}),L.push(()=>{hxFiveLine(p[h])}),L.push(()=>{push(),rotate(p23),hxFiveLine(p[h]),pop()}),L.push(()=>{push(),rotate(2*p23),hxFiveLine(p[h]),pop()}),L.push(()=>{hxTwoLine(p[h])}),L.push(()=>{push(),rotate(p23),hxTwoLine(p[h]),pop()}),L.push(()=>{push(),rotate(2*p23),hxTwoLine(p[h]),pop()}),L.push(()=>{hxFiveLineTwice(p[h])}),L.push(()=>{hxDiamond(p[h])}),L.push(()=>{push(),rotate(p23),hxDiamond(p[h]),pop()}),L.push(()=>{push(),rotate(2*p23),hxDiamond(p[h]),pop()}),L.push(()=>{hxParBig(p[h])}),L.push(()=>{hxMer(p[h])}),L.push(()=>{hx3Line(p[h])}),L.push(()=>{hxT(p[h])}),L.push(()=>{hxFigure8(p[h])}),L.push(()=>{hx12TriLine(p[h])}),L.push(()=>{hxZ(p[h])}),L.push(()=>{hxX(p[h])}),L.push(()=>{hxPlus(p[h])}),L.push(()=>{hxRect(p[h])}),L.push(()=>{hxTripTail(p[h])}),L.push(()=>{hxDoubTail(p[h])}),L.push(()=>{hxCentFlip(p[h])}),L.push(()=>{hxDoubRect(p[h])}),L.push(()=>{hx3dOut(p[h])}),L.push(()=>{hx3dHash(p[h])})}let B=[];function SAB(){B.push(()=>{hxOut(bgst)}),B.push(()=>{hxMultLine(bgst,13)}),B.push(()=>{hxMultLine(bgst)}),B.push(()=>{hxMultLine(bgst,7)}),B.push(()=>{hxFiveLine(bgst)}),B.push(()=>{push(),rotate(p23),hxFiveLine(bgst),pop()}),B.push(()=>{push(),rotate(2*p23),hxFiveLine(bgst),pop()}),B.push(()=>{hxTwoLine(bgst)}),B.push(()=>{push(),rotate(p23),hxTwoLine(bgst),pop()}),B.push(()=>{push(),rotate(2*p23),hxTwoLine(bgst),pop()}),B.push(()=>{hxMer(bgst)}),B.push(()=>{hxT(bgst)}),B.push(()=>{hx3Line(bgst)}),B.push(()=>{hxDiamond(bgst)}),B.push(()=>{push(),rotate(p23),hxDiamond(bgst),pop()}),B.push(()=>{push(),rotate(2*p23),hxDiamond(bgst),pop()}),B.push(()=>{hxParBig(bgst)}),B.push(()=>{hxFiveLineTwice(bgst)}),B.push(()=>{hxFigure8(bgst)}),B.push(()=>{hx12TriLine(bgst)}),B.push(()=>{hxZ(bgst)}),B.push(()=>{hxX(bgst)}),B.push(()=>{hxPlus(bgst)}),B.push(()=>{hxRect(bgst)}),B.push(()=>{hxTripTail(bgst)}),B.push(()=>{hxDoubTail(bgst)}),B.push(()=>{hxCentFlip(bgst)}),B.push(()=>{hxDoubRect(bgst)}),B.push(()=>{hxFan(bgst)}),B.push(()=>{hxChev(bgst)}),B.push(()=>{hxShortLn(bgst)}),B.push(()=>{hxLongLn(bgst)}),B.push(()=>{hxShortLong(bgst)}),B.push(()=>{hx3dOut(bgst)}),B.push(()=>{hx3dHash(bgst)})}let stA=R.RB(.5)?0:1,stB=0===stA?1:0;function static(h,t=600){stct=0,hxMaskInit();let a=z/w*t;a=ckClose(a);let s=int(a);s+=s%2==0?stA:stB;let p=pa.width/s;for(let t=0;t<s;t++)for(let a=0;a<s;a++)pa.fill(h()),pa.rect(a*p-z,t*p-z,p,p),stct++;hxMask(),hxImgMask()}function dHexMa(h,t,a=0,s=0){ma.beginShape();for(let t=0;t<TWO_PI;t+=p3)iFlat?ma.vertex(a+h*cos(t)+gO(),s+h*sin(t)+gO()):ma.vertex(a+h*sin(t)+gO(),s+h*cos(t)+gO());ma.endShape(CLOSE)}function hxMaskInit(){pa.clear(),pa.noStroke()}function hxMask(){ma.clear(),ma.fill(0),ma.noStroke(),dHexMa(z,0)}function hxImgMask(){(im=pa.get()).mask(ma),image(im,-z,-z)}function hxFill(h,t=z){noStroke(),fill(h),dHex(t)}function hxStroke(h,t,a,s=z,p=o){a=1-a,noStroke(),fill(h),dHex(s,p*(s/z),0,0),fill(t),dHex(s*a,p*(s*a/z),0,0)}function hxParallel(h){let t=0===o?1:5;for(let h=1;h<=t;h++)hxParallelDraw(bgst,!1);hxParallelDraw(h,!0)}function hxParallelDraw(h,t){t?(fill(h),noStroke()):(noFill(),S(h)),beginShape(),vertex(ahc[0].x+gO(),ahc[0].y+gO()),vertex(ahc[1].x+gO(),ahc[1].y+gO()),vertex(ahc[2].x+gO(),ahc[2].y+gO()),vertex(ahc[3].x+gO(),ahc[3].y+gO()),endShape(CLOSE)}function hxOut(h){S(h),push();for(let h=1;h<=6;h++)H(ahc[0],ahc[1]),rotate(p3);pop()}function hxMultLine(h,t=10){S(h),tsz=iFlat?hxH/t:hxW/t,push();for(let h=1;h<=t;h++)H(ahc[5],ahc[4]),iFlat?translate(0,tsz):translate(tsz,0);pop()}function hxFiveLine(h){S(h),H(ahc[0],ahc[3]),H(ahs[5],ahs[3]),H(ahs[0],ahs[2]),H(ahc[1],ahc[2]),H(ahc[5],ahc[4])}function hxFiveLineTwice(h){hxFiveLine(h),push(),rotate(p3),hxFiveLine(h,w),pop()}function hxTwoLine(h){S(h),H(ahs[0],ahs[2]),H(ahs[3],ahs[5])}function hxFigure8(h){S(h),H(ahc[0],ahc[3]),H(ahc[1],ahc[4]),H(ahc[0],ahc[5]),H(ahc[5],ahc[4]),H(ahc[3],ahc[2]),H(ahc[2],ahc[1])}function hx6TriLine(h){S(h),push();for(let h=1;h<=6;h++)H(ahc[0],ahc[3]),rotate(p3);pop()}function hx12TriLine(h){S(h),push();for(let h=1;h<=6;h++)H(ahc[0],ahc[3]),H(ahs[0],ahs[3]),rotate(p3);pop()}function hxZ(h){S(h),H(ahs[2],ahc[4]),H(ahc[4],ahc[1]),H(ahc[1],ahs[5])}function hxX(h){S(h),H(ahs[0],ahs[3]),H(ahs[2],ahs[5])}function hxPlus(h){S(h),H(ahc[0],ahc[3]),H(ahs[1],ahs[4])}function hxRect(h){S(h),dRect()}function hxParBig(h){S(h),push(),hct%2==0&&rotate(PI),H(ahc[1],ahs[2]),H(ahs[2],ahs[3]),H(ahs[3],ahc[5]),H(ahc[5],ahc[1]),pop()}let iMero=R.RB(.5);function hxMer(h){push(),hct%2==0&&iMero&&rotate(PI),S(h),H(ahs[1],p0),H(ahs[3],p0),H(ahs[5],p0),pop()}function hxT(h){push(),hct%2==0&&rotate(PI),S(h),H(ahs[1],ahs[4]),H(ahc[3],p0),pop()}function hxShortLn(h){S(h),H(ahc[1],ahc[2],2*ic)}function hxLongLn(h){S(h),H(ahc[0],ahc[3],2*ic)}function hxShortLong(h){S(h),H(ahc[0],ahc[3],2*ic),H(ahc[1],ahc[2],2*ic)}function hxChev(h){S(h),H(ahc[0],ahs[1]),H(ahs[1],ahc[3]),H(ahs[5],p0),H(ahs[3],p0)}function hxFan(h){S(h),push(),rotate(PI*(hct%2)),H(ahc[0],ahs[1]),H(ahc[0],ahs[4]),H(ahc[0],ahs[2]),H(ahc[0],ahs[3]),pop()}let i3lo=R.RB(.5);function hx3Line(h){S(h),hx3LineHelp(),i3lo&&(push(),rotate(PI/2),hx3LineHelp(),pop())}function hx3LineHelp(){H(ahc[0],ahc[4]),H(ahs[0],ahs[3]),H(ahc[1],ahc[3])}function hxDiamond(h){S(h),H(ahc[0],ahs[1]),H(ahc[0],ahs[4]),H(ahc[3],ahs[1]),H(ahc[3],ahs[4])}function hxTripTail(h){S(h),H(ahc[0],ahc[3]),H(ahc[1],ahc[4]),H(ahc[2],ahc[5]),H(ahc[0],ahc[1]),H(ahc[2],ahc[3]),H(ahc[5],ahc[4])}function hxDoubTail(h){S(h),H(ahc[0],ahc[1]),H(ahc[0],ahc[4]),H(ahc[5],ahc[2]),H(ahc[4],ahc[3]),H(ahc[3],ahc[1])}function hxCentFlip(h){S(h),H(ahc[0],ahc[1]),H(ahc[0],ahc[2]),H(ahc[5],ahc[1]),H(ahc[5],ahc[3]),H(ahc[4],ahc[3]),H(ahc[4],ahc[2])}function hxDoubRect(h){S(h),dRect(),push(),rotate(PI/2),dRect(),pop()}function hx3dOut(h){hxOut(h),H(ahc[0],p0),H(ahc[2],p0),H(ahc[4],p0)}function hx3dHash(h){hxOut(h),S(h),push();for(let h=1;h<=3;h++){push();for(let h=1;h<=3;h++)H(ahc[0],p0),iFlat?translate(1/6*-z,Math.sqrt(3)/2*z*.33):translate(Math.sqrt(3)/2*z*.33,1/6*-z);pop(),rotate(p23)}pop()}function hx6TriFill(h){push();for(let t=0;t<=5;t++)noStroke(),fill(h[t]),triangle(ahc[0].x+gO(),ahc[0].y+gO(),ahc[1].x+gO(),ahc[1].y+gO(),p0.x+gO(),p0.y+gO()),rotate(p3);pop()}function hxRepeat(h,t=.1){let a=h.length,s=z*t;for(let t=0;t<a;t++){let p=z-z/a*t;hxStroke(h[t],bg,s/p,p)}}function hxSingDiam(h,t=h){hxFigure8(t),push(),rotate(p23),d3Diam(h),pop()}function hxDoubDiam(h,t,a=h){hxFigure8(a),push(),rotate(p23),d3Diam(h),rotate(PI),d3Diam(t),pop()}function hxSingSq(h){rectMode(CENTER),fill(h),noStroke(),push(),rotate(p3),rect(hxr/2,0,z,z),pop(),rectMode(CORNER)}function hxDoubSq(h,t){hxSingSq(h),push(),rotate(PI),hxSingSq(t),pop()}function dHex(h,t=o,a=0,s=0){beginShape();for(let p=0;p<TWO_PI;p+=p3)iFlat?vertex(a+h*cos(p)+gO(t),s+h*sin(p)+gO(t)):vertex(a+h*sin(p)+gO(t),s+h*cos(p)+gO(t));endShape(CLOSE)}function dRect(){H(ahs[0],ahs[2]),H(ahs[2],ahs[3]),H(ahs[3],ahs[5]),H(ahs[5],ahs[0])}function d3Diam(h){noStroke(),fill(h),quad(ahc[0].x+gO(),ahc[0].y+gO(),ahc[1].x+gO(),ahc[1].y+gO(),ahc[2].x+gO(),ahc[2].y+gO(),p0.x+gO(),p0.y+gO())}function gO(h=o){return R.RN(-h,h)}function S(h,t=l){stroke(h),strokeWeight(t)}function hxCorner(h,t){let a=p3*h;return iFlat?createVector(t*cos(a),t*sin(a)):createVector(t*sin(a),t*cos(a))}function hxSideMid(h,t){let a=p3*h+p3/2;return iFlat?createVector(Math.sqrt(3)/2*t*cos(a),Math.sqrt(3)/2*t*sin(a)):createVector(Math.sqrt(3)/2*t*sin(a),Math.sqrt(3)/2*t*cos(a))}function H(h,t,a=ic){for(let s=0;s<a;s++)line(h.x+gO(),h.y+gO(),t.x+gO(),t.y+gO())}function PS(h,t){let a=R.RD();for(let s=0;s<h.length;s++)if(a<=h[s]/100)return t[s]}function keyPressed(){let h=keyCode;if(49===h||50===h||51===h){let t=new URL(window.location.href),a=t.searchParams,s=3e3;return a.delete("size"),50===h?s*=2:51===h&&(s*=3),a.set("size",s),t.search=a.toString(),window.location.href=t.toString(),!1}}function SV(){up.size&&saveCanvas("Mellifera"+tokenData.tokenId,"png")}