memoscan
← all memos

Memo 0xb1b83d94…cf2c21 on Ethereum

Factors:new Array(5).fill(null).map((()=>i(.8,1))),sSpeeds:new Array(5).fill(null).map((()=>i(10))),M:O})),v=F[0],F=[h[0]],B+=1}for(let t=0;t<W;t+=1)if(E){const{x:t,y:e}=E;let s=[];A[0]&&(s=p(R.points.filter((({x:i,y:s})=>{const h=B%4!=0||e<s;return y=B%2==1?.1*width:.001*width,dist(t,e,i,s)>y&&dist(t,e,i,s)<k&&dist(A[0].x,A[0].y,i,s)>y&&dist(A[0].x,A[0].y,i,s)<k&&h})))),A.length>0&&s.length>0&&R.triangles2.push(new m(Y,[E,A[0],s[0]],{opacity:i(.1,.7),sColor:R.backColor,bColor:R.backColor3,sFactor:i(.8,1),sSpeed:i(10),strokeSpeed:i(50,100),M:O})),E=A[0],A=[s[0]],B+=1}R.circles=new Array(h(1,7)).fill(null).map((()=>{const e=i(.05*width,.3*width),s=i(.05*width,.3*width);return new b(Y,{center:o(R.triangles).points[0],color:o(R.lerpColors),backColor:o(R.backColors),size1:e,size2:s,offsetX:i(.05*-e,.05*e),offsetY:i(.05*-e,.05*e),isColored:t()>.5,isOutside:t()>.7,outsideNoFill:t()>.5,speed1:i(10,30),speed2:i(10,30),diff:t()>.5})}));const L=i(.5*width),M=i(.5*height),X=i(width-L,.5*width),I=i(height-X,.5*height),P=X*i(.02,.05);R.rects=[],R.gridShearX=i(-5,5),R.gridShearY=i(-5,5);for(let t=L;t<X;t+=P)for(let e=M;e<I;e+=P)R.rects.push({x:t,y:e,w:P,h:P});R.ld=[i(5*O,30*O),i(5*O,20*O)],G=i(.1)},M()}function draw(){const{backColor:t,backColorN:e,backColor2:i,backColor3:s,rects:h,ld:o,gridShearX:r,gridShearY:n,circles:p,triangles:a,triangles2:l}=R,{mOffsetX:d,mOffsetY:c}=N,w=width/2+sin(100*G)*(width/2.2),f=height/2+cos(100*G)*(width/2.2),g=constrain(map(w-width/2,-width/2,width/2,-d,d),-d,d),x=constrain(map(f-height/2,-height/2,height/2,-c,c),-c,c),u=constrain(map(mouseX-width/2,-width/2,width/2,-d,d),-d,d),y=constrain(map(mouseY-height/2,-height/2,height/2,-c,c),-c,c),C=g+u,k=x+y;Y.background(255),Y.push(),Y.noStroke(),Y.fill(s),Y.rect(0,0,width,height),Y.pop();const b=map(cos(G*$+1),-1,1,.3,0),S=map(cos(G*z+1),-1,1,.5,1.2),m=map(cos(G*D+1),-1,1,5,0),v={x:width*b-C*m,y:width*b-k*m},E={x:width*(1-b)-C*m,y:width*b-k*m},F={x:width*(1-b)-C*m,y:height-width*b-k*m},A={x:width*b-C*m,y:height-width*b-k*m},W=map(sin(20*G),-1,1,0,v.y),B=map(sin(20*G),-1,1,height,A.y),L=map(sin(20*G),-1,1,0,v.x),M=map(sin(20*G),-1,1,width,E.x);Y.push(),Y.noStroke(),Y.fill(t),Y.beginShape(),Y.vertex(0,0),Y.vertex(L,W),Y.vertex(M,W),Y.vertex(Y.width,0),Y.endShape(CLOSE),Y.pop(),Y.push(),Y.stroke(0),Y.strokeWeight(2*O),Y.line(L,W,M,W),Y.pop(),Y.push(),Y.noStroke(),Y.fill(t),Y.beginShape(),Y.vertex(Y.width,0),Y.vertex(M,W),Y.vertex(M,B),Y.vertex(Y.width,Y.height),Y.endShape(CLOSE),Y.pop(),Y.push(),Y.stroke(0),Y.strokeWeight(2*O),Y.line(M,W,M,B),Y.pop(),Y.push(),Y.noStroke(),Y.fill(t),Y.beginShape(),Y.vertex(Y.width,Y.height),Y.vertex(M,B),Y.vertex(L,B),Y.vertex(0,Y.height),Y.endShape(CLOSE),Y.pop(),Y.push(),Y.stroke(0),Y.strokeWeight(2*O),Y.line(L,B,M,B),Y.pop(),Y.push(),Y.noStroke(),Y.fill(t),Y.beginShape(),Y.vertex(0,Y.height),Y.vertex(L,B),Y.vertex(L,W),Y.vertex(0,0),Y.endShape(CLOSE),Y.pop(),Y.push(),Y.stroke(0),Y.strokeWeight(2*O),Y.line(L,W,L,B),Y.pop(),Y.push(),Y.stroke(0),Y.strokeWeight(2*O),Y.line(0,0,v.x,v.y),Y.line(width,0,E.x,E.y),Y.line(width,height,F.x,F.y),Y.line(0,height,A.x,A.y),Y.fill(t),Y.rect(v.x,v.y,width*(1-2*b),height-width*b*2),Y.pop(),h.forEach((({x:e,y:s,w:h,h:o},p)=>{Y.push(),Y.strokeWeight(O),Y.shearX(r),Y.shearY(n),Math.round(p+400*G)%10==0?(Y.drawingContext.shadowColor=i,Y.drawingContext.shadowBlur=O,Y.drawingContext.shadowOffsetX=-g,Y.drawingContext.shadowOffsetY=-x,Y.fill(0)):Y.fill(t),Y.stroke(0),Y.rect(e,s,h,o),Y.pop()})),a.forEach(((t,e)=>{e%2==1&&t.draw(G,C,k)})),Y.push(),Y.drawingContext.shadowColor="black",Y.drawingContext.shadowBlur=O,Y.drawingContext.shadowOffsetX=2*-g,Y.drawingContext.shadowOffsetY=2*-x,Y.noFill(),Y.stroke(i),Y.strokeWeight(40*O),Y.rect(0,0,width,height),Y.pop(),Y.push(),Y.noFill(),Y.stroke(0),Y.strokeWeight(20*O),Y.rect(0,0,width,height),Y.strokeWeight(2*O),Y.rect(20*O,20*O,width-40*O,height-40*O),Y.pop(),p.forEach(((t,e)=>{e%3==2&&t.draw(G,C,k)})),p.forEach(((t,e)=>{e%3==1&&t.draw(G,C,k)})),Y.push(),Y.noFill(),Y.drawingContext.setLineDash(o),Y.drawingContext.lineDashOffset=1e3*G,Y.stroke(0),Y.strokeWeight(O),Y.beginShape();for(let t=0;t<a.length;t+=1)if(t%15==0){const[e,i,s]=a[t].points;Y.vertex(e.x-C,e.y+k),Y.vertex(i.x-C,i.y+k),Y.vertex(s.x-C,s.y+k)}Y.endShape(),Y.pop(),p.forEach(((t,e)=>{e%3==0&&t.draw(G,C,k)})),a.forEach(((t,e)=>{e%2==0&&t.draw(G)})),push(),noStroke(),rect(0,0,width,height),drawingContext.clip(),image(Y,0,0),pop(),push(),noFill(),stroke(0),strokeWeight(20*O),rect(0,0,width,height),strokeWeight(O),rect(20*O,20*O,width-40*O,height-40*O),pop();const I=map(cos(G*H),-1,1,0,255);l.forEach(((t,e)=>{e%2==0&&t.draw(C,k,G)})),e.setAlpha(I),push(),stroke(0,I),strokeWeight(O),line(0,0,v.x,v.y),line(width,0,E.x,E.y),line(width,height,F.x,F.y),line(0,height,A.x,A.y),fill(e),rect(v.x,v.y,width*(1-2*b),height-width*b*2),translate(width/2-C,height/2-k),scale(S),translate(-(width/2-C),-(height/2-k)),drawingContext.clip(),image(X,0,0),pop(),p.forEach(((t,e)=>{e%3==0&&t.draw2(G,C,k,map(cos(100*G),-1,1,0,255))})),l.forEach(((t,e)=>{e%2==1&&t.draw(-C,-k,G)})),G+=5e-5}const I=()=>{console.log("click")};window.addEventListener("click",I),window.addEventListener("touchstart",I);let P=!0;function windowResized(){const t=void 0,e=X.canvas.style;let i,s;.75*window.innerHeight>=window.innerWidth?(i=window.innerWidth,s=window.innerWidth/.75):(s=window.innerHeight,i=.75*window.innerHeight),e.position="absolute",e.display="block",e.top=e.left=e.right=e.structure="0",e.width=`${i}px`,e.height=`${s}px`}window.addEventListener("keydown",(t=>{"s"===t.key&&saveCanvas(tokenData.hash,"png")," "===t.key&&(P?(noLoop(),P=!1):(loop(),P=!0))}));