memoscan
← all memos

Memo 0x97281a3b…3a3393 on Ethereum

[0,()=>{console.log("Artist 19. Bart Simons -- platform 0"); ('use strict'); var Q = Object.defineProperty; var Z = (t, e, s) => (e in t ? Q(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : (t[e] = s)); var Y = (t, e, s) => (Z(t, typeof e != 'symbol' ? e + '' : e, s), s); let d = null, P = null, m, F, tt, et, st, h = {}, ot; const nt = (t) => { let { width: e, height: s, ratio: o } = t || {}; at(e, s, o); let n = document.createElement('body'); (P = document.createElement('canvas')), document.documentElement.appendChild(n), n.appendChild(P), (d = P.getContext('2d')), (P.style.width = `${m}px`), (P.style.height = `${F}px`); const a = window.devicePixelRatio; (P.width = m * a), (P.height = F * a), d.scale(a, a); }, at = (t = !1, e = !1, s = !1) => { let o = window.innerWidth / window.innerHeight, n = s || 1; (h.b = 1e3), (h.h = window.innerHeight), (h.r = n), o > n ? (h.w = n * h.h) : ((h.w = window.innerWidth), (h.h = h.w / n)), t && (h.w = t), e && (h.h = e), (h.s = Math.min(h.w, h.h)), (h.m = h.s / h.b), ([m, F, tt, et, st] = [h.w, h.h, h.m, h.w * 0.1, h.b]); }, x = Uint32Array.from([0, 0, 0, 0].map((t, e) => parseInt(tokenData.hash.substr(e * 8 + 2, 8), 16))), W = () => { let t, e = x[3]; return ( (x[3] = x[2]), (x[2] = x[1]), (x[1] = t = x[0]), (e ^= e << 11), (e ^= e >>> 8), (x[0] = e ^ t ^ (t >>> 19)), x[0] / 4294967296 ); }, A = (t, e) => t + (e - t) * W(), C = (t, e) => Math.floor(A(t, e)), H = (t) => t[Math.floor(W() * t.length)], ht = (t) => { let e = t.length, s, o; for (; e !== 0; ) (o = Math.floor(W() * e)), e--, (s = t[e]), (t[e] = t[o]), (t[o] = s); return t; }, p = (t, e, s, o, n) => o + (n - o) * ((t - e) / (s - e)); let $ = 0, rt = 60, it = '#FFF', l, I; const lt = { 1: ['#c84a4d', '#fdbc2e', '#599d6b', '#fbf5e9', '#238da5', '#333333'], 3: [ '#ECEEE1', '#E6E6E4', '#F09950', '#F58124', '#EFB816', '#F5C165', '#FBE0CE', '#F4A0AF', '#C3D371', '#095F24', ], 6: ['#f6bd60', '#f7ede2', '#f5cac3', '#84a59d', '#f28482'], 5: ['#c9cba3', '#ffe1a8', '#e26d5c', '#723d46', '#472d30'], }; let g, B = 0, G = 0, L = [], O, q = 0, R, V = 0; const z = 1.7777777777, M = 1e3, u = M / z, ct = () => { nt({ ratio: 1 / z }), dt(), console.log('Bart Simons'), console.log('Bitterzoet'), console.log('Bright Moments, The Finale'), console.log('2024'), (g = H(Object.values(lt))), (g = ht(g)), (B = A(0.6, 1.2)), (G = C(2e3, 5e3)), (O = H([-17, -15, -10, 10, 15, 17])), (q = C(0, g.length)), (R = A(2, 8)), (V = A(R, R * 3)); for (let t = 0; t < G; t++) L.push(new mt()); }, D = () => { L.forEach((t) => { t.update(); }), $ < rt && ($++, requestAnimationFrame(D)), L.forEach((t) => { t.showMappedVersion(); }), yt(), pt(); }, dt = () => { (l = document.createElement('canvas')), (l.width = u), (l.height = M), (l.style.width = `${u}px`), (l.style.height = `${M}px`), (I = l.getContext('2d')), (I.fillStyle = it); }, pt = () => { d.save(), d.beginPath(), d.rect(0, 0, m, F), (d.strokeStyle = g[q]), (d.lineWidth = m * 0.05), d.stroke(), d.restore(); }, T = (t) => ((t /= 255), t <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4)), ft = ([t, e, s, o]) => { const n = T(t), a = T(e), f = T(s); return (0.2126 * n + 0.7152 * a + 0.0722 * f) * 255; }, yt = () => { const t = I.getImageData(0, 0, l.width, l.height), e = Math.floor(l.width * 0.01), s = e; for (let o = 0; o < l.width; o += e) for (let n = 0; n < l.height; n += s) { const a = ut(t, o, n, e, s); if (a < 255) { d.save(); let f = Math.floor(a / (255 / g.length)); d.restore(); let c = Math.floor(p(a, 0, 255, 2, 20)), i = p(o, 0, l.width, 0, m), r = p(n, 0, l.height, 0, F), y = p(e, 0, l.width, 0, m), w = p(s, 0, l.height, 0, F); gt(d, i, r, y, w, c, g[f]); } } }, gt = (t, e, s, o, n, a, f) => { t.save(), t.beginPath(), (t.strokeStyle = f), (t.lineWidth = p(0.5, 0, u, 0, m)); const c = Math.ceil(Math.sqrt(o * o + n * n) / a / 2), i = Math.atan2(s, e); for (let r = 0; r <= c; r++) { const y = r * a, w = e + Math.cos(i) * y, b = s + Math.sin(i) * y, E = w - Math.cos(i) * n, S = b + Math.sin(i) * o; t.moveTo(w, b), t.lineTo(E, S); } t.stroke(), t.restore(); }, ut = (t, e, s, o, n) => { let a = 0; for (let c = 0; c < o; c++) for (let i = 0; i < n; i++) { const r = Math.floor(((s + i) * t.width + (e + c)) * 4); if (r > t.data.length) return; const y = ft([t.data[r], t.data[r + 1], t.data[r + 2], t.data[r + 3]]); a += y; } return a / (o * n); }; class mt { constructor() { Y(this, 'showMappedVersion', () => { const e = this.rectShape.corners.map((s) => ({ x: p(s.x, 0, u, 0, m), y: p(s.y, 0, M, 0, F) })); j(d, e, this.color, '#333', p(2, 0, u, 0, m)); }); (this.p = { x: C(0, u), y: C(0, M) }), (this.prevP = { x: this.p.x, y: this.p.y }), (this.step = 1.2); let e = { x: u / 2, y: M / 2 }, s = Math.hypot(this.p.x - e.x, this.p.y - e.y); (this.colorPos = p(s, 0, M / 2, 0, g.length)), (this.colorPos = p(s, M / 2, 0, 0, g.length)), (this.color = g[Math.floor(this.colorPos)]), (this.strokeWidth = C(u * 0.02, u * 0.04)), (this.outside = !1), (this.rectShape = []), W() < 0.05 && (this.color = H(g)); } update() { (this.p.x += O * _(this.p.x, this.p.y).x * this.step), (this.p.y += O * _(this.p.x, this.p.y).y * this.step), (this.rectShape = this.generateRectShape(this.prevP, this.p, this.strokeWidth)), j(I, this.rectShape.corners, this.color, '#333', 2), (this.prevP = { x: this.p.x, y: this.p.y }); } generateShape(e, s, o) { const { x: n, y: a } = e, { x: f, y: c } = s, i = f - n, r = c - a, y = Math.hypot(i, r), w = Math.atan2(r, i); return { x: (n + f) / 2 - y / 2, y: (a + c) / 2 - o / 2, w: y, h: o, a: w }; } generateRectShape(e, s, o) { const { x: n, y: a } = e, { x: f, y: c } = s, i = f - n, r = c - a, y = Math.hypot(i, r), w = Math.atan2(r, i), b = o / 2, E = y / 2, S = (n + f) / 2, X = (a + c) / 2, U = [ { x: -E, y: -b }, { x: E, y: -b }, { x: E, y: b }, { x: -E, y: b }, ], v = w, J = U.map(function (k) { const K = k.x * Math.cos(v) - k.y * Math.sin(v), N = k.x * Math.sin(v) + k.y * Math.cos(v); return { x: K + S, y: N + X }; }); return { x: S - E, y: X - b, w: y, h: o, a: w, corners: J }; } } const _ = (t, e) => { (t = p(t, 0, u, B, -B)), (e = p(e, 0, M, B, -B)); let s = Math.sin(R * e + 100) + Math.cos(V * e + Math.PI), o = Math.sin(R * t + 120) - Math.cos(V * t + Math.PI / 10); return { x: s, y: o }; }, j = (t, e, s, o, n = 0) => { t.beginPath(), t.moveTo(e[0].x, e[0].y), e.forEach((a) => { t.lineTo(a.x, a.y); }), (t.fillStyle = s), (t.strokeStyle = o), (t.lineWidth = n), t.closePath(), t.fill(); }; ct(), D(); }],[1,()=>{console.log("Artist 30. Cory Haber -- platform 1");let e,n,t,r,a,o,i,l,s,u,d,m,h,c,f,g,p,_,S,w,b,y,G,k,x,C,M,B,E,A=window.innerWidth,P=window.innerHeight,v=[],D=[],I=[],F=[],T=[],V=[],Y=[],O=[],W=[],q=[],N=[],L=new Set,U=new Set;const H=[[-47,0,47],[-162,0,162],[-47,0,47]],z=[[-47,-162,-47],[0,0,0],[47,162,47]];function Q(e,n,t,r,a){let i=4*(e*p+n*o*p*p),l=t.pixels[i],s=t.pixels[i+1],u=t.pixels[i+2],d=[];for(let e=0;e<W.length;e++){let n=sq(W[e][0]-l)+sq(W[e][1]-s)+sq(W[e][2]-u);d.push({dist:n,color:W[e]})}d.sort(((e,n)=>e.dist-n.dist));let m=R.random_int(0,a),h=d[m].color,c=h[0],f=h[1],g=h[2],_=h[3],S=c+f+g;return r.add(_),U.add([_,S]),N.push([c,f,g,_]),[e,n,c,f,g,_,m,S]}async function J(){if(M<C.length){const n=[0,30,60,90,120,150,180,210,240,270,300,330];let r=[];for(let a=0;a<Y.length;a++){let l,s,u=Y[a],m=color(u[2],u[3],u[4],opacity);if(noStroke(),beginShape(),u[5]===C[M]){for(let a=0;a<w;a++){let h=int(u[0]),g=int(u[1]),p=int(u[0]/x)+int(u[1]/x)*(o/x);if(h>f&&h<o-f&&g>f&&g<i-f){let o=round(t+t*sqrt(Z(int(g),int(h)))),i=T[p];l=o*cos(i),s=o*sin(i),u[0]+=l,u[1]+=s;let f=i<0?TWO_PI+i:i;f=degrees(f);let _=n.reduce(((e,n)=>abs(n-f)<abs(e-f)?n:e));if(2===S)noFill(),stroke(m),strokeWeight(defaultStroke*c),a%4==0&&curveVertex(h*c,g*c),0!==a&&24!==a||curveVertex(h*c,g*c);else if(0===S){noStroke();let n,t,a,o,i,l,s=R.random_int(1,y);for(let u=0;u<s;u++)n=R.random_num(0,d),t=radians(R.random_int(0,360)),a=h+n*cos(t),o=g+n*sin(t),i=R.random_int(1,20),r.push([h*c,g*c]),i<=19?(fill(m),l=R.random_num(.1,2.1),ellipse(a*c,o*c,l*c,l*c)):K(a*c,o*c,k,m,_,b),e++}endShape()}}beginShape();for(let e=0;e<r.length;e++)noFill(),m.setAlpha(40),stroke(m),strokeWeight(1.5*c),curveVertex(r[e][0],r[e][1]);r=[],endShape()}}M++,requestAnimationFrame(J)}}function K(e,n,t,r,a,o){R.random_num(-.01,-.24);let i=int(red(r)),l=int(green(r)),s=int(blue(r));fill(i,l,s,o),push(),translate(e,n);let u=R.random_num(.1,1),d=R.random_num(1,t);noStroke(),beginShape();for(let e=0;e<360;e+=30){let n,t,r,o;r=u+R.random_num(-.5,.5),o=radians(e),e===a?(n=(d+r)*cos(o),t=(d+r)*sin(o)):(n=r*cos(o),t=r*sin(o)),curveVertex(n*c,t*c)}endShape(CLOSE),pop()}function Z(e,n){let t=n+e*o,r=I[t],a=F[t];return Math.hypot(r,a)}function $(e,n,t,r,a){var o=function(e,n){var t=Math.sqrt(12*e*e/n+1),r=Math.floor(t);r%2==0&&r--;for(var a=r+2,o=(12*e*e-n*r*r-4*n*r-3*n)/(-4*r-4),i=Math.round(o),l=[],s=0;s<n;s++)l.push(s<i?r:a);return l}(a,3);j(e,n,t,r,(o[0]-1)/2),j(n,e,t,r,(o[1]-1)/2),j(e,n,t,r,(o[2]-1)/2)}function j(e,n,t,r,a){for(var o=0;o<e.length;o++)n[o]=e[o];!function(e,n,t,r,a){for(var o=1/(a+a+1),i=0;i<r;i++){for(var l=i*t,s=l,u=l+a,d=e[l],m=e[l+t-1],h=(a+1)*d,c=0;c<a;c++)h+=e[l+c];for(c=0;c<=a;c++)h+=e[u++]-d,n[l++]=Math.round(h*o);for(c=a+1;c<t-a;c++)h+=e[u++]-e[s++],n[l++]=Math.round(h*o);for(c=t-a;c<t;c++)h+=m-e[s++],n[l++]=Math.round(h*o)}}(n,e,t,r,a),function(e,n,t,r,a){for(var o=1/(a+a+1),i=0;i<t;i++){for(var l=i,s=l,u=l+a*t,d=e[l],m=e[l+t*(r-1)],h=(a+1)*d,c=0;c<a;c++)h+=e[l+c*t];for(c=0;c<=a;c++)h+=e[u]-d,n[l]=Math.round(h*o),u+=t,l+=t;for(c=a+1;c<r-a;c++)h+=e[u]-e[s],n[l]=Math.round(h*o),s+=t,u+=t,l+=t;for(c=r-a;c<r;c++)h+=m-e[s],n[l]=Math.round(h*o),s+=t,l+=t}}(e,n,t,r,a)}setup=function(){O=[[246,238,103,"Nickel Yellow"],[243,235,26,"Cadmium Yellow Light"],[245,224,11,"Cadmium Yellow Medium"],[244,194,19,"Cadmium Yellow Deep"],[243,112,34,"Cadmium Orange"],[238,58,35,"Cadmium Red Light"],[233,33,43,"Cadmium Red Medium"],[162,29,48,"Cadmium Red Deep"],[215,62,46,"Turkey Red"],[158,32,46,"Quinacridone Red"],[234,228,90,"Cadmium Lemon"],[242,197,54,"Cobalt Yellow"],[250,178,32,"Indian Yellow"],[238,206,107,"Naples Yellow"],[241,172,103,"Jaune Brillant"],[225,86,89,"Warm Pink"],[219,76,44,"Alizarin Orange"],[127,36,45,"Alizarin Crimson"],[122,42,53,"Magenta Earth"],[124,37,53,"Quinacridone Magenta"],[192,169,63,"Olive Yellow"],[231,225,165,"Green Gold Pale"],[247,244,203,"Brilliant Yellow Extra pale"],[240,223,180,"Sienna Yellow Extra Pale"],[245,214,212,"Scarlet Extra Pale"],[231,118,164,"Dianthus Pink"],[210,61,91,"Warm Rose"],[127,71,136,"Cobalt Violet Deep"],[64,49,72,"Egyptian Violet"],[96,56,90,"Manganese Violet"],[133,119,48,"Green Gold"],[75,80,58,"Green Earth"],[42,72,36,"Sap Green"],[185,209,177,"Celadon Green"],[188,220,243,"Cerulean Extra Pale"],[189,209,233,"Ultramarine Blue Pale"],[69,128,194,"Azure Blue"],[109,135,192,"King's Blue"],[94,117,185,"Provence Blue"],[88,86,151,"Ultramarine Violet"],[81,117,73,"Chromium Oxide Green"],[78,123,64,"Cadmium Green"],[101,172,76,"Permanent Green"],[38,142,89,"Veronese Green"],[177,223,213,"Phthalo Green Pale"],[53,174,195,"Cobalt Teal"],[56,100,171,"Cerulean Blue"],[46,132,193,"Manganese Blue Hue"],[17,28,155,"Cobalt Blue"],[44,62,136,"Ultramarine Blue"],[54,105,86,"Viridian"],[150,178,65,"Cadmium Green pale"],[84,180,176,"Malachite Green"],[40,118,157,"Turquoise Blue"],[54,86,109,"Cobalt Turquoise"],[37,55,121,"Phthalo Blue"],[23,38,71,"Prussian Blue"],[41,42,106,"Indanthrone Blue"],[48,57,62,"Indigo"],[48,50,62,"Blue Ochre"],[42,60,48,"Courbet Green"],[22,65,58,"Phthalo Green"],[35,52,68,"Phthalo Turquoise"],[55,65,56,"Turkey Umber Greenish"],[75,71,59,"Raw Umber"],[79,62,52,"Burnt Umber"],[98,64,54,"Burnt Sienna"],[113,50,41,"Brown Pink"],[78,47,52,"Sepia"],[53,58,64,"Payne's Grey"],[98,63,61,"Mars Violet"],[130,62,51,"Mars Red"],[140,65,72,"Sanguine Earth Deep"],[178,74,73,"Sanguine Earth Medium"],[181,88,71,"Sanguine Earth Light"],[144,84,60,"Mars Orange"],[155,114,50,"Mars Yellow Deep"],[173,136,56,"Mars Yellow Light"],[161,106,52,"Stil de Grain"],[158,107,54,"Raw Sienna"],[135,73,58,"Iridescent Copper"],[190,145,52,"Ancient Gold"],[219,143,59,"Iridescent Gold"],[220,187,116,"Iridescent Brass"],[214,208,184,"Iridescent Pearl"],[168,165,146,"Iridescent Silver"],[144,142,127,"Iridescent German Silver"],[80,86,84,"Iridescent Pewter"],[67,73,71,"Graphite Grey"],[36,42,40,"Lamp Black"],[229,211,175,"Unbleached Titanium"],[181,191,180,"Cerulean Grey"],[193,198,191,"Neutral Grey Pale"],[146,163,170,"Neutral Grey Light"],[120,137,145,"Neutral Grey Medium"],[86,104,118,"Neutral Grey Deep"],[104,107,88,"Turkey Umber Pale"],[39,43,42,"Mars Black"],[44,50,50,"Ivory Black"],[27,31,30,"Intense Carbon Black"],[233,227,205,"Neutral White"],[253,252,247,"Titanium-Zinc White"]];const N=[[97,98,92,54,25,44,47,28,24,12,99],[10,24,53,84,16,56,97,5,1,61,99,21,98,33,43,63,58,86,25],[48,98,85,2,38,9,100,3,5,14,90,99,97],[100,62,49,25,24,47,36,23,56,12,84,38,13,99,52,53],[100,21,91,10,1,25,2,62,15,81,74,8,18,29,60,53,38,39,56,47,12,55],[12,101,10,4,60,82,68,56,50,58,72,93,35,21,83,34,52,53,91,22,89,1,34,25]];E=["Thoth","Ra","Anubis","Neptune","Helios","Elysia"],B=R.random_int(0,N.length-1),function(e){for(let n=0;n<e.length;n++){let t=O[e[n]];W.push(t)}}(N[B]),f=0,console.log("Cosmic Flowers by Cory Haber"),m=585,h=1040,browserRatio=A/P,o=585,i=1040,a=.5625,browserRatio>.5625?(c=P/h,s=P/h*m,u=P):(c=A/m,s=A,u=A/m*h),c*=h/i;d=R.random_choice([2,3,4,5]),e=0;t=R.random_choice([.15,.25,.35,.45]),w=15,G=.25,y=3;let U=R.random_choice([5,10,15,20]);opacity=100,b=250,k=8;let K=R.random_choice([20,30,40,50,60]);var Z;defaultStroke=5.45,n=R.random_num(.01,.05),x=2,M=0,S=0,g=pixelDensity(),pixelDensity(g),p=1,r=new Float32Array(i*p*(o*p)),createCanvas(s,u),_=createGraphics(o,i),_.pixelDensity(p),function(e,n,t,a,l){let s,u,d,m,h,c=R.random_int(900,2500),f=R.random_int(300,900),g=R.random_int(4,20),S=R.random_int(20,700),w=R.random_int(2,8),b=R.random_int(3,5),y=R.random_int(1,2),G=R.random_int(1,1);tangentAngle=90;let k,x,C=R.random_int(-o/10,o/10),M=R.random_int(-i/10,i/10),B=R.random_int(0,360),E=(R.random_int(1,10),R.random_int(0,9),0),A=0,P=R.random_int(0,7);0===P?(k=.009,x=.003):1===P?(k=-.009,x=.003):2===P?(k=.003,x=.009):3===P?(k=.003,x=-.009):4===P?(k=.009,x=.009):5===P?(k=-.009,x=-.009):6===P?(k=.005,x=.005):7===P&&(k=-.005,x=-.005);k=.002,x=.01,push(),angleMode(DEGREES),_.colorMode(HSB,360,100,100),_.translate(o/2+C,i/2+M),_.background(0,0,100),_.strokeWeight(w),_.stroke(0,0,0),_.rotate(B);for(let e=0;e<f;e+=b){_.beginShape(POINTS);for(let n=0;n<360;n+=y){let t=(S*pow(abs(sin(n*g)),G)+c)*e/f,r=t*cos(n),a=t*sin(n),i=dist(0,0,r,a),l=map(i,0,o/2,w,w+5),s=map(i,0,o/2,0,150);_.stroke(s,s,s),_.strokeWeight(l),E+=k,A+=x,_.vertex(r+E,a+A)}_.endShape()}pop(),_.loadPixels(),index=0;for(let e=0;e<i;e++){let n=e*o*p*p;for(let e=0;e<o;e++)s=4*(e*p+n),u=_.pixels[s],d=_.pixels[s+1],m=_.pixels[s+2],h=(u+d+m)/3|0,r[index++]=h}}(),function(e,n){for(let t=0;t<=i;t+=e)for(let r=0;r<=o;r+=e){let e=r+R.random_num(-n,n),a=t+R.random_num(-n,n),o=createVector(e,a);append(V,o)}}(2.4,U),function(e){v=new Float32Array(o*i),D=new Float32Array(o*i);let n=o;for(let t=1;t<i-1;t++)for(let r=1;r<o-1;r++){let a=r-1+n*(t-1),i=r+n*(t-1),l=r+1+n*(t-1),s=r-1+n*t,u=r+n*t,d=r+1+n*t,m=r-1+n*(t+1),h=r+n*(t+1),c=r+1+n*(t+1),f=e[a]*H[0][0]+e[i]*H[0][1]+e[l]*H[0][2]+e[s]*H[1][0]+e[u]*H[1][1]+e[d]*H[1][2]+e[m]*H[2][0]+e[h]*H[2][1]+e[c]*H[2][2],g=e[a]*z[0][0]+e[i]*z[0][1]+e[l]*z[0][2]+e[s]*z[1][0]+e[u]*z[1][1]+e[d]*z[1][2]+e[m]*z[2][0]+e[h]*z[2][1]+e[c]*z[2][2];v[t*o+r]=f,D[t*o+r]=g}}(r),$(v,I,o,i,K),$(D,F,o,i,K),function(e,t,r,a){let l;for(let s=0;s<i;s+=a)for(let i=0;i<o;i+=a){let u=i+s*o,d=i/a+s/a*(o/a),m=e[u],h=t[u];l=degrees(atan2(h,m))+tangentAngle;let c=radians(l);r[d]=c,tangentAngle+=n}}(I,F,T,x),function(){for(let e=0;e<W.length;e++){let n=W[e][0],t=W[e][1],r=W[e][2];q[e]=[n*n,t*t,r*r]}}(),function(e,n,t){Y.length=e.length;for(let r=0;r<e.length;r++)Y[r]=Q(int(e[r].x),int(e[r].y),n,L,t)}(V,_,3),l=Array.from(L),function(e){0===e?Y.sort(((e,n)=>l.indexOf(e[5])-l.indexOf(n[5]))):1===e?Y.sort(((e,n)=>e[7]-n[7])):Y.sort(((e,n)=>n[7]-e[7]))}(0),C=function(){let e=new Set;for(let n=0;n<Y.length;n++){let t=Y[n][5];e.add(t)}return Array.from(e)}(),background(0),(Z=300,new Promise((e=>setTimeout(e,Z)))).then((()=>J()))}; }],