memoscan
← all memos

Memo 0x56866c2d…39bfc2 on Ethereum

lerpColor(b,me?p:B?k:u,t+(me?0:l.num(-.1,.17)));o.strokeCap(l.choice([o.PROJECT,o.SQUARE,o.ROUND])),o.strokeWeight(m*a),o.stroke(c)}else o.strokeCap(o.ROUND),o.strokeWeight(m),o.stroke(b);o.beginShape(),o.vertex(a[0]+d,a[1]+d),o.vertex(g[0]+d,g[1]+d),o.endShape()})),o.strokeWeight(c),o.strokeCap(o.ROUND),e.poly[0].map(((l,r)=>{const s=e.poly[0][r+1]||e.poly[0][0],h=Ke(l,_e(t),P),c=i(o.constrain(-(h-a)*n,0,1)),g=o.lerpColor(d,me?p:u,c);o.stroke(g),o.beginShape(),o.vertex(...l),o.vertex(...s),o.endShape()})),o.colorMode(o.HSL)})(e,t),(e=>{let t=o.color(D.line[0]),n=l.num(-.4,.6);for(const i of e.triangles){if(i.drawFill){let e=te+-2;o.strokeJoin(o.ROUND),o.strokeWeight(ee+n),o.beginShape(),o.fill(t),o.noStroke(),i.tri.map((t=>o.vertex(t[0]+e,t[1]+e))),o.endShape(o.CLOSE)}if(i.drawFill){const e=-2+l.num(-.2,.2);o.noStroke(),o.fill(i.color),o.beginShape(),i.tri.map((t=>o.vertex(t[0]+e,t[1]+e))),o.endShape(o.CLOSE)}if((i.drawStroke||i.drawFill)&&(o.noFill(),o.stroke(D.line[0]),i.drawFill||o.strokeWeight(.75*ee+n),o.beginShape(),i.tri.map((e=>o.vertex(...e))),o.endShape(o.CLOSE)),i.decoration){let e=1;const t=l.num(.07,.15);for(;e>.01;){let l=Re(i.tri.map((e=>o.createVector(...e))),e);e-=t,o.noFill(),o.stroke(D.line[0]),o.strokeWeight(.75*ee+.75*n),o.beginShape(),l.map((e=>o.vertex(e.x,e.y))),o.endShape(o.CLOSE)}}}})(e)})),L&&(o.fill(X&&!N?D.base[D.base.length>1?1:0]:G||W?F:D.stroke[0]),o.noStroke(),o.rect(0,0,a,10.6),o.rect(0,0,10.6,s),o.rect(a-10.6,0,10.6,s),o.rect(0,s-10.6,a,20.6)),(()=>{const e=o.color(D.lowlight[0]),t=o.color(D.highlight[0]),n=200,i=[0,1100,10,.56],r=o.max(a,s)/2;for(let h=-200;h<s+n;h++)for(let c=-200;c<a+n;c++)if(l.bool(97)){l.bool(90)?o.blendMode(o.BLEND):l.bool(50)?o.blendMode(o.MULTIPLY):o.blendMode(o.SCREEN);const g=$e(c,h,0,50,4,.9),f=$e(c,h,...i)*n,d=$e(c,h,...i)*n,b=o.dist(c,h,a/2,s/2),u=o.map(b,0,.6*r,0,1,!0),m=[c+f-100,h+d-100],p=.63+l.num(-.18,.19);if(Oe(m,p)){const n=o.map(g,0,.7,.04,.05+.09*u,!0);e.setAlpha(n+.02),t.setAlpha(n-.02),o.fill(l.bool(40+25*u)?e:t),o.noStroke(),o.circle(...m,p)}}o.blendMode(o.BLEND)})(),!0)];Date.now(),document.complete=!1,new e((e=>{let r=0;l=new t(n),c=l.num(0,1e9),(e=>{e.noiseSeed(c),e.randomSeed(c),o=e})(e),Xe(),o.noiseSeed(A),Ue=[0,q,0==q?20:5,.6],qe=[0,q,8,.3],Ge=[0,200,8,.9],ze=[1e3,Ce,De,Fe],e.keyPressed=()=>{((e,t)=>{49===t&&(e.background(D.lowlight[0]),i.obj.map((e=>{(e=>{let t=o.color(D.lowlight[0]);t.setAlpha(.2),o.stroke(D.highlight[0]),o.fill(t),e.map((e=>{o.strokeWeight(.1),o.circle(e.x,e.y,2*e.r),o.strokeWeight(2),o.stroke(D.highlight[0]),o.point(e.x,e.y)}))})(e.packingCirlces)}))),50===t&&(e.background(D.lowlight[0]),i.obj.map(((e,t)=>{((e,t=1,n=l.choice(D.accent))=>{o.stroke(n),o.strokeWeight(t),o.noFill(),o.beginShape(),e.map((e=>o.vertex(...e))),o.endShape(o.CLOSE)})(e.hobbyVerts.map((e=>[e.x,e.y])),.2*t,D.highlight[0])}))),51===t&&(e.background(D.lowlight[0]),((e=Ke,t=[],n=2,l=0)=>{const i=o.color(D.highlight[0]);for(let r=0;r<s;r++)for(let s=0;s<a;s++){const a=e([s,r],...t);i.setAlpha(a/n-l/2),o.stroke(i),o.strokeWeight(.8),o.point(s,r)}})()),52===t&&(()=>{o.background(D.lowlight[0]);const e=Qe(...ze),t=e.max-e.min,n=t/2*Ae,l=-t*Me,i=e.mean-n+l,r=e.mean+n+l;console.table(e),console.table({dynamicRange:t,compression:n,highlowpass:l,min:i,max:r});const h=o.color(D.highlight[0]);o.strokeWeight(.4);for(let e=0;e<s;e++)for(let t=0;t<a;t++){const n=x(o.map($e(t,e,...ze),i,r,0,1,!0));h.setAlpha(n),o.stroke(h),o.point(t,e)}})(),53===t&&window.location.reload(),80==t&&console.table(Xe()),83==t&&e.saveCanvas(h,n,"png")})(e,e.keyCode)},e.setup=()=>{var t;t=e.createCanvas(g,f,e.P2D),h=t,e.pixelDensity(2),e.colorMode(e.HSL)},e.draw=()=>{e.scale(g/a),ht[r]()&&(r+1<ht.length?r++:(e.noLoop(),document.complete=!0))}}));