memoscan
← all memos

Memo 0xbe89836f…1e3c7d on Ethereum

function t(t){return t&&t.__esModule?t.default:t}const e=(t,e)=>{const i=[],r=Math.ceil(e/t.length),o=1/r;for(let e=0;e<t.length;e+=1)for(let h=0;h<r;h+=1){const r=color(t[e]),n=color(t[(e+1)%t.length]);i.push(lerpColor(r,n,(h+1)*o))}return i},i=(t,e,i,r,o)=>{const h=[];for(let n=0;n<o-1;n+=1){const s=lerp(t,i,n/(o-1)),l=lerp(e,r,n/(o-1));h.push({x:s,y:l})}return h.push({x:i,y:r}),h},r=(t,e,i,r,o)=>{const h=[];for(let n=0;n<i;n+=1)h.push({x:t+r*cos(o),y:e+r*sin(o)}),o+=360/i;return h},o=(t,e,i,o,h,n)=>{const s=r(t,e,o,h,n),l=i/o,c=[];for(let t=0;t<o;t+=1)for(let e=0;e<l;e+=1){const i=lerp(s[t].x,s[(t+1)%s.length].x,e/l),r=lerp(s[t].y,s[(t+1)%s.length].y,e/l);c.push({x:i,y:r})}return c},h=t=>{const e=1e-6,i={},r=t[0][0],o=t[0][1],h=t[1][0],n=t[1][1],s=t[2][0],l=t[2][1],c=h-r,a=n-o,d=s-r,f=l-o,p=c*(r+h)+a*(o+n),g=d*(r+s)+f*(o+l),u=2*(c*(l-n)-a*(s-h));let y,x;if(Math.abs(u)<e){const t=Math.min(r,h,s),e=Math.min(o,n,l),c=Math.max(r,h,s),a=Math.max(o,n,l);i.x=.5*(t+c),i.y=.5*(e+a),y=i.x-t,x=i.y-e}else{const t=(f*p-a*g)/u,e=(c*g-d*p)/u;i.x=t,i.y=e,y=i.x-r,x=i.y-o}return i.r=Math.sqrt(y*y+x*x),i},n=(t,e,i,r,o,h,n,s,l)=>{const c=[];for(let a=0;a<=l;a+=1){const d=a/l,f=bezierPoint(t,i,o,n,d),p=bezierPoint(e,r,h,s,d);c.push({x:f,y:p})}return c},s=(t,e)=>{let i=floor(t*e*3.14)/e**2;return t>=1&&(i=-1),i},l=(t,e,i,r,o,h,n)=>{const s=[];let l=0;for(let c=0;c<i;c+=1){const i=n?cos(o):sin(o),c=n?sin(o):cos(o);s.push({x:t+r*i*l,y:e+r*c*l}),o+=2,l+=h}return s},c=(t,e,i,r,o)=>{var h=t-i,n=e-r;return h*h+n*n<=o*o},a=(t,e,i,r,o,h,n=width/1e3)=>abs(dist(t,e,i,r)-(dist(t,e,o,h)+dist(i,r,o,h)))<=n,d=(t,e,i,r,o,h)=>a(i,r,o,h,t,e),f=(t,e,i,r=width/1e3)=>{var o=t.length,h=!1,n,s;for(n=0,s=o-2;n<o;n+=2)t[n+1]>i!=t[s+1]>i&&e<(t[s]-t[n])*(i-t[n+1])/(t[s+1]-t[n+1])+t[n]&&(h=!h),s=n;if(h)return!0;for(n=0;n<o;n+=2){var l=t[n],c=t[n+1],d,f;if(n===o-2?(d=t[0],f=t[1]):(d=t[n+2],f=t[n+3]),a(l,c,d,f,e,i,r))return!0}return!1},p=(t,e)=>f(e,t[0],t[1]),g=(t,e,i)=>Array.isArray(e)?e[t*e.length|0]:e||0===e?i||0===i?(e>i&&([e,i]=[i,e]),e+t()*(i-e)):t()*e:t(),u=(t,e,i,r,o,h,n,s,l,c)=>{if(o--,(c-=1)>0||o>=0&&g(l)<n)if(i>=r){let a=i*g(l,s[0],s[1]);u(t,e,a,r,o,h,n,s,l,c),u(t+a,e,i-a,r,o,h,n,s,l,c)}else{let a=r*g(l,s[0],s[1]);u(t,e,i,a,o,h,n,s,l,c),u(t,e+a,i,r-a,o,h,n,s,l,c)}else h.push({x:t,y:e,w:i,h:r,n:o})},y=(t,e,r,o,h,n,s,l)=>{const c=i(0,0,0,height,o),a=i(width,0,width,height,o);for(let o=0;o<c.length;o+=1){const{x:d,y:f}=c[o],{x:p,y:g}=a[o],u=i(d,f,p,g,r);for(let i=0;i<u.length;i+=1){const{x:r,y:o}=u[i];let c=map(noise(r/e*n,o/e*n),0,1,o-width*h,o+width*h),a=map(noise(r/e*l,o/e*l),0,1,r-height*s,r+height*s);t.push([a,c])}}},x=(t,e,i,r,h,s,l)=>{const c=h(360),a={x:l?h(-width/4,width/4):h(width),y:l?h(height):h(-height/4,height/4)},d={x:l?h(.75*width,1.25*width):h(width),y:l?h(height):h(.75*height,1.25*height)},f=o(a.x,a.y,i,i,h(width/4),c),p=o(d.x,d.y,i,i,h(width/4),c);let g,u;l?(g=a.y>height/2?h(.5):h(.5,1),u=d.y>height/2?h(.5):h(.5,1)):(g=a.x>width/2?h(.5):h(.5,1),u=d.x>width/2?h(.5):h(.5,1));for(let e=0;e<f.length;e+=1){const{x:i,y:o}=f[e],{x:h,y:s}=p[e];let c;c=l?n(i,o,.25*width,height*g,.75*width,height*u,h,s,r):n(i,o,width*g,.25*height,width*u,.75*height,h,s,r);for(let e=0;e<c.length;e+=1){const{x:i,y:r}=c[e];t.push([i,r])}}},w=(t,e,i,r,h,s,l,c)=>{let a=o(e,i,r,r,l,s(360)),d=o(e,i,r,r,l,s(360));for(let e=0;e<Math.round(a.length/2);e+=1){let i=s(4);c||(i=2);const{x:r,y:o}=a[e],{x:l,y:f}=a[Math.round(e+a.length/i)%a.length],{x:p,y:g}=d[Math.round(e+d.length/i)%d.length],{x:u,y:y}=d[e],x=n(r,o,l,f,p,g,u,y,h);for(let e=0;e<x.length;e+=1){const{x:i,y:r}=x[e];t.push([i,r])}}},v=(t,e,i,r,o,h,n,l,c,a)=>{for(let d=0;d<t.length-1;d+=1){const{x:f,y:p,r:g}=t[d];let u=noise(f/r*n,p/r*n);u=s(u,l);let y=constrain(map(dist(f,p,o.x,o.y),0,width/o.gravity,.1*g,g),.1*g,1.1*g);push();const x=p+constrain(map(p-h.y,-h.y,h.y,.2*-g,.2*g),.2*-g,.2*g),w=f+constrain(map(f-h.x,-h.x,h.x,.2*-g,.2*g),.2*-g,.2*g);noStroke(),fill(0),circle(w,x,y),fill(i[0]),a&&fill(e[0]),circle(w,x,y),fill(e[abs(Math.round(map(u,0,1,0,e.length))%e.length)]),noStroke(),circle(f,p,y),stroke(0);const v=map(u,0,1,0,360);arc(f,p,y,y,v,v+180),stroke(i[0]),arc(f,p,y,y,v,v+c(85,95)),pop()}},k=(t,e,i,r,o,h,n,l,c)=>{for(let a=0;a<t.length-1;a+=1){const{x:d,y:f,r:p}=t[a];let g=noise(d/r*n,f/r*n);g=s(g,l);let u=constrain(map(dist(d,f,o.x,o.y),0,width/o.gravity,.1*p,p),.1*p,1.1*p);push();const y=f+constrain(map(f-h.y,-h.y,h.y,.2*p,.2*-p),.2*p,.2*-p),x=d+constrain(map(d-h.x,-h.x,h.x,.2*p,.2*-p),.2*p,.2*-p),w=e[abs(Math.round(map(g,0,1,0,e.length))%e.length)];noStroke(),fill(w),circle(x,y,u),fill(0),circle(d,f,u),fill(i[0]),circle(d,f,u),Math.round(d/r+f/r)%c[0]==0&&(fill(w),circle(d,f,u/2)),Math.round(d/r+f/r)%c[1]==0&&(noFill(),stroke(w),circle(d,f,u/2)),pop()}},m=(t,e,i,r,h,n)=>{const s=r(width),l=r(height),c=o(s,l,e,h?4:e,i,n?45:0);for(let e=0;e<c.length;e+=1){const{x:i,y:r}=c[e];t.push([i,r])}return t},b=(t,e)=>{const i=(t,e,i)=>{const r=[];let o=30;for(let h=0;h<6;h+=1)r.push({x:t+i*cos(o),y:e+i*sin(o)}),o+=60;return{dots:r,center:{x:t,y:e}}},r=190*e/8,o=165*e/8,h=110*e/8,n=void 0,s=void 0;(()=>{const t=[];for(let e=0;e<64;e+=1){const n=[];for(let t=0;t<44;t+=1)e%2==0?n.push(i(t*r,e*o,h)):n.push(i(r/2+t*r,e*o,h));t.push(n)}return t})().forEach((e=>{e.forEach((({dots:e})=>{e.forEach((({x:e,y:i})=>{t.push([e,i])}))}))}))},E=(t,e,i,r,o,h,n,l)=>{for(let i=0;i<t.length-1;i+=1){const{x:c,y:a,r:d}=t[i];let f=noise(c/r*n*2,a/r*n*2);f=s(f,l);let p=constrain(map(dist(c,a,o.x,o.y),0,width/o.gravity,.2*d,d),.2*d,1.2*d);const g=e[abs(Math.round(map(f,0,1,0,e.length))%e.length)];push(),strokeWeight(constrain(map(dist(h.x,h.y,c,a),0,width/h.gravity,0,5*r),0,5*r)),noFill(),stroke(g),circle(c,a,p),pop()}},F=(t,e,i,r,o,h,n,l)=>{for(let i=0;i<t.length-1;i+=1){const{x:c,y:a,r:d}=t[i];let f=noise(c/r*n*2,a/r*n*2);f=s(f,l);let p=constrain(map(dist(c,a,o.x,o.y),0,width/o.gravity,.2*d,d),.2*d,1.2*d);const g=e[abs(Math.round(map(f,1,0,0,e.length)))%e.length];push(),strokeWeight(constrain(map(dist(h.x,h.y,c,a),0,width/h.gravity,0,10*r),0,10*r)),noFill(),stroke(g),circle(c,a,p),pop()}};var S={},M,C=1/1048576;function D(t){var e=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY,h,n,s,l,c,a;for(h=t.length;h--;)t[h][0]<e&&(e=t[h][0]),t[h][0]>r&&(r=t[h][0]),t[h][1]<i&&(i=t[h][1]),t[h][1]>o&&(o=t[h][1]);return s=o-i,[[(c=e+.5*(n=r-e))-20*(l=Math.max(n,s)),(a=i+.5*s)-l],[c,a+20*l],[c+20*l,a-l]]}function I(t,e,i,r){var o=t[e][0],h=t[e][1],n=t[i][0],s=t[i][1],l=t[r][0],c=t[r][1],a=Math.abs(h-s),d=Math.abs(s-c),f,p,g,u,y,x,w,v,k,m;return a<9.5367431640625e-7?p=(u=-(l-n)/(c-s))*((f=(n+o)/2)-(x=(n+l)/2))+(v=(s+c)/2):d<9.5367431640625e-7?p=(g=-(n-o)/(s-h))*((f=(l+n)/2)-(y=(o+n)/2))+(w=(h+s)/2):(f=((g=-(n-o)/(s-h))*(y=(o+n)/2)-(u=-(l-n)/(c-s))*(x=(n+l)/2)+(v=(s+c)/2)-(w=(h+s)/2))/(g-u),p=a>d?g*(f-y)+w:u*(f-x)+v),{i:e,j:i,k:r,x:f,y:p,r:(k=n-f)*k+(m=s-p)*m}}function N(t){var e,i,r,o,h,n;for(i=t.length;i;)for(o=t[--i],r=t[--i],e=i;e;)if(n=t[--e],r===(h=t[--e])&&o===n||r===n&&o===h){t.splice(i,2),t.splice(e,2);break}}let A=0,B=0;S=M={triangulate:function(t,e){var i=t.length,r,o,h,n,s,l,c,a,d,f,p,g;if(i<3)return[];for(t=t.slice(0),h=new Array(i).fill(null).map(((t,e)=>e)),h.sort((function(e,i){var r=t[i][0]-t[e][0];return 0!==r?r:e-i})),n=D(t),t.push(n[0],n[1],n[2]),s=[I(t,i+0,i+1,i+2)],l=[],c=[],r=h.length;r--;c.length=0){for(g=h[r],o=s.length;o--;)B+=1,(a=t[g][0]-s[o].x)>0&&a*a>s[o].r?(l.push(s[o]),s.splice(o,1)):a*a+(d=t[g][1]-s[o].y)*d-s[o].r>9.5367431640625e-7||(A+=1,c.push(s[o].i,s[o].j,s[o].j,s[o].k,s[o].k,s[o].i),s.splice(o,1));for(N(c),o=c.length;o;)p=c[--o],f=c[--o],s.push(I(t,f,p,g))}for(r=s.length;r--;)l.push(s[r]);for(s.length=0,r=l.length;r--;)l[r].i<i&&l[r].j<i&&l[r].k<i&&s.push(l[r].i,l[r].j,l[r].k);return s}};const W=(t,e,i,r,o,h,n,s,l)=>{for(let n=0;n<t.length-1;n+=1){const{x:s,y:c,r:a}=t[n];let d=constrain(map(dist(s,c,h.x,h.y),0,width/h.gravity,.2*a,a),.2*a,1.2*a);push(),strokeWeight(constrain(map(dist(o.x,o.y,s,c),0,width/o.gravity,0,7.5*r),0,7.5*r)),noFill(),l&&(stroke(0),fill(0),circle(s,c,d)),stroke(i[0]),fill(i[0]),l||(stroke(e[0]),fill(e[0])),circle(s,c,d),pop()}},H=void 0;var L=t=>{const e=Uint32Array.from([0,0,0,0].map(((e,i)=>parseInt(t.substr(8*i+2,9),16)))),i=()=>{let t,i=e[3];return e[3]=e[2],e[2]=e[1],e[1]=t=e[0],i^=i<<11,i^=i>>>8,e[0]=i^t^t>>>19,e[0]/4294967296},r=(t,e)=>e?i()*(e-t)+t:i()*t,o=(t,e)=>Math.floor(r(t,e)),h=t=>t.length?t[o(0,t.length)]:void 0,n=t=>{let e=t.reduce(((t,e)=>t+e)),r=i()*e;for(let e=0;e<t.length;e++){if(r<t[e])return e;r-=t[e]}return 0},s=t=>{let e,r,o=t.length,h=t.slice();for(;o;)e=Math.floor(i()*o--),r=h[o],h[o]=h[e],h[e]=r;return h},l=(t,e)=>{let i;return s(t).slice(0,e)};return{rnd:i,range:r,rangeFloor:o,pick:h,weighted:n,shuffleArray:s,pickSome:l}};const V=void 0;var z=[["#ff6700","#ebebeb","#3a6ea5"],["#FDD6E8","#FA801C","#A94B51"],["#fa2d19","#3565a3","#f5d5d6"],["#9B0A0B","#745F67","#D5D8CD"],["#fa4659","#2eb872","#feffe4"],["#058581","#C6BC07","#EAEADE"],["#6639a6","#3490de","#6fe7dd"],["#ff206e","#fbff12","#41ead4"],["#047af6","#32fa00","#ff00d5"],["#708d81","#f4d58d","#bf0603"],["#fa110d","#ffffff","#fec3f0"],["#8d99ae","#edf2f4","#ef233c"],["#fffcf2","#ccc5b9","#eb5e28"],["#E3D0B1","#DB6C38","#009272"],["#01638d","#abcecc","#fff2cd"],["#213571","#77B494","#E34F24"],["#3F8A8C","#E5340B","#F28A0F","#FFE7BD"],["#C84837","#183045","#EBD3AD"],["#169b62","#5ec8e5","#f984ca","#ff4c65","#ffe800"],["#B59C89","#007C9B","#F4F5F4"],["#dd1c1a","#06aed5","#f0c808","#fff1d0"],["#2138ff","#FEC23B","#EAE8D5","#DA292C"],["#6d5bcf","#ffd400","#ff1080","#eadeda"],["#3FBBB9","#E92C41","#D0D1CE"],["#4375E2","#5CF7F5","#EC37DB","#FAEE44"],["#DF5024","#5E6359","#F4F5F4"],["#075ea8","#d9322b","#f3a606","#e1d2b3"]];let T;tokenData.hash="0xc10e04b14c241fd98dc83fe5f660b006563ce4567483529daf0ebe6e092b152b";const{hash:P}=tokenData;let _,j;const O=.75;let Y,q;function setup(){q=createCanvas(_,j),strokeCap(SQUARE);let r=width/1e3;strokeWeight(r),angleMod