memoscan
← all memos

Memo 0x1b5a55ae…e3521c on Ethereum

,"w":0.15,"cd":6,"p":[-0.1217,0.0117,-0.0717,-0.4217,-0.0367,0.0033,0.2867,-0.3867,0.0383,0.0467,0.3833,0.3317,-0.035,0.0767,0.095,0.4267,-0.1083,0.0333,-0.4467,0.4083,-0.1967,0.045,-0.4433,-0.3833,-0.1667,-0.0633]}');var le;le=JSON.parse('{"type":"curve","ct":0.25,"cw":0.06,"w":0.15,"cd":7,"p":[-0.3633,-0.41,-0.235,-0.1717,-0.2183,-0.4167,-0.1483,-0.175,0.0633,-0.4167,-0.0683,-0.145,0.4167,-0.1917,-0.075,-0.055,0.3917,0.12,-0.0617,0.0617,0.3567,0.42,-0.17,0.0767]}');var pe;pe=JSON.parse('{"type":"curve","ct":0.25,"cw":0.19,"w":0.15,"cd":6,"p":[-0.3233,0.2117,0.21,-0.2933,-0.2783,-0.345,0.2783,0.255,-0.3233,0.2117]}');var ue;ue=JSON.parse('{"type":"curve","ct":-2.61,"cw":0.19,"w":0.15,"cd":7,"p":[-0.3233,0.2117,0.21,-0.2933,-0.2783,-0.345,0.2783,0.255,-0.3233,0.2117]}');var de;de=JSON.parse('{"type":"curve","ct":-1,"cw":0.1,"w":0.15,"cd":4,"p":[0.015,0.05,-0.37,-0.4667,-0.315,0.1483,0.3967,0.1867,0.455,-0.4583,0.015,0.05]}');var ge;ge=JSON.parse('{"type":"curve","ct":-1.35,"cw":0.15,"w":0.11,"cd":4,"p":[0,-0.45,0.385,-0.4733,0.5967,-0.13,0.3967,0.0967,0.1233,0.295,0.0117,-0.1383,-0.35,-0.0917,-0.3183,-0.4317,0,-0.45]}');var fe;fe=JSON.parse('{"type":"curve","ct":-1,"cw":0.23,"w":0.15,"cd":4,"p":[-0.303,0.44,-0.328,-0.337,0.322,0.208]}');var ye;ye=JSON.parse('{"type":"curve","ct":0.3,"cw":0.05,"w":0.11,"cd":4,"p":[-0.5133,0.6117,-0.6567,0.3133,-0.4067,0.5333,-0.5467,0.205,-0.2867,0.4517,-0.4383,0.1217,-0.19,0.3883,-0.325,0.0533,-0.0917,0.3217,-0.2133,-0.0317,0.0133,0.2567,-0.1,-0.1033,0.12,0.195,0.0033,-0.1767,0.2467,0.1183,0.1283,-0.2317,0.3617,0.0267]}');var ve;ve=JSON.parse('{"type":"curve","ct":0,"cw":0.12,"w":0.11,"cd":4,"p":[-0.4517,0.635,-0.6417,-0.0317,-0.1233,0.3433,-0.2933,0.465,-0.3617,-0.1617,0.27,0.2517,0.0783,0.3667,-0.0267,-0.405,0.595,0.045,0.4267,0.1933,0.435,-0.53]}');var we;we=JSON.parse('{"type":"curve","ct":-2.09,"cw":0.12,"w":0.11,"cd":4,"p":[-0.2233,0.265,0.225,-0.3433,-0.1867,-0.4067,0.3867,0.1917]}');var me;me=JSON.parse('{"type":"curve","ct":-1.48,"cw":0.18,"w":0,"cd":4,"p":[0.06,0.245,-0.3183,0.2683,-0.51,0.1317,-0.1583,-0.085,-0.3867,-0.3733,-0.0533,-0.58,0.2917,-0.405,0.4433,-0.1517,0.0517,-0.0617,0.3283,0.2317,0.06,0.245]}');var be;be=JSON.parse('{"type":"curve","ct":-1.48,"cw":0.07,"w":0,"cd":8,"p":[0.475,0.59,-0.5967,0.6217,0.585,0.3883,-0.6583,0.285,0.5983,0.13,-0.65,0.005,0.5967,-0.0983,-0.6467,-0.2217,0.645,-0.3033,-0.5967,-0.4167,0.595,-0.6117]}');var xe;xe=JSON.parse('{"type":"curve","ct":-1.48,"cw":0.07,"w":0,"cd":7,"p":[-0.0867,0.67,-0.613,0.035,0.1667,0.4717,-0.35,-0.473,0.4983,0.11,0.0867,-0.688,0.6533,-0.235]}');var Pe;Pe=JSON.parse('{"type":"curve","ct":-1,"cw":0.1,"w":0.15,"cd":7,"p":[-0.38,-0.155,0.4383,0.205,-0.3633,0.185,0.345,-0.2583]}');var Se;Se=JSON.parse('{"type":"curve","ct":-1.27,"cw":0.06,"w":0.05,"cd":6,"p":[-0.6333,0.0533,-0.4417,-0.59,-0.1183,0.3317,-0.4467,0.365,0.0467,-0.36,0.1367,0.485,0.59,0.47,0.0083,-0.18]}');var Oe;Oe=JSON.parse('{"type":"curve","ct":-1.27,"cw":0.06,"w":0.05,"cd":8,"p":[0.3067,-0.6083,-0.6317,-0.3633,0.4517,-0.175,-0.2317,0.615]}');var ke;ke=JSON.parse('{"type":"curve","ct":-1.27,"cw":0.06,"w":0.05,"cd":6,"p":[-0.5617,0.125,-0.3933,-0.475,-0.1217,0.165,-0.3417,0.1767,0.0067,-0.4617,0.2167,0.1533,0.58,0.0233]}');var Ne;Ne=JSON.parse('{"type":"curve","ct":-1.27,"cw":0.12,"w":0.05,"cd":6,"p":[0.1033,0.1658,0.0467,0.6733,-0.1917,0.1117,-0.5083,0.6317,-0.5233,-0.0475,-0.6333,-0.5392,-0.1017,-0.4183,0.4067,-0.4275,0.1533,-0.0008,0.6,0.3825,0.1983,0.3658]}');var Je;Je=JSON.parse('{"type":"curve","ct":-1.27,"cw":0.08,"w":0.05,"cd":6,"p":[-0.215,-0.2,-0.0033,-0.5817,0.2683,-0.4983,0.0117,-0.09,0.395,-0.0133,0.5267,0.34,-0.0317,0.2383,-0.1467,0.61,-0.6117,0.5267,-0.32,0.1433,-0.6667,-0.2633,-0.4267,-0.39,-0.28,-0.1083]}');var Re;Re=JSON.parse('{"type":"curve","ct":-1,"cw":0.07,"w":0.12,"cd":3,"p":[-0.6167,0.365,-0.113,-0.393,-0.663,-0.287,0.013,0.305,0.1617,-0.467,0.683,0.0783,0.2917,0.1817,0.49,-0.6117]}');var ze;ze=JSON.parse('{"type":"curve","ct":-1,"cw":0.07,"w":0.12,"cd":3,"p":[-0.69,-0.667,0.46,-0.43,-0.25,0.45,-0.5283,-0.5017,0.6467,0.1217]}');var Te;Te=JSON.parse('{"type":"curve","ct":-1,"cw":0.07,"w":0.12,"cd":3,"p":[-0.6083,0.11,0.5033,-0.506,-0.653,-0.39,0.625,0.3133,-0.4817,0.37,0.5767,-0.2617]}');var We;We=JSON.parse('{"type":"curve","ct":-1,"cw":0.16,"w":0.12,"cd":3,"p":[-0.6283,0.6317,-0.485,-0.6167,-0.0067,0.6317,0.6333,-0.665]}');var De;De=JSON.parse('{"type":"curve","ct":-1,"cw":0.02,"w":0.12,"cd":3,"p":[-0.698,-0.7017,-0.255,-0.6817,0.54,-0.587,-0.003,-0.113,-0.0983,-0.527,0.545,-0.237,-0.3917,0.653,-0.335,0.0583,0.6717,0.667]}');var Ie;Ie=JSON.parse('{"type":"poly","l":"polygon","w":0.21,"ct":0.4,"p":[0.5,0,0,0.5,-0.5,0,0,-0.5]}');var Ce;Ce=JSON.parse('{"type":"poly","l":"polygon","w":0.33,"ct":0.8,"p":[0.5,0,-0.25,0.433,-0.25,-0.43]}');var Le;Le=JSON.parse('{"type":"bezier","cw":0.17,"w":0.26,"cd":8,"chain":7,"p":[0.3967,-0.4317,-0.6617,-0.4533,0.505,0.12,-0.38,0.4]}');var Ee;Ee=JSON.parse('{"type":"bezier","cw":0.05,"w":0.15,"cd":9,"chain":15,"p":[-0.005,-0.48,-0.068,-0.152,0.0583,0.1583,-0.007,0.492]}');var _e;_e=JSON.parse('{"type":"bezier","cw":0.03,"w":0.15,"cd":7,"chain":20,"p":[-0.11,-0.6117,-0.25,0.25,0.25,0.25,0.6383,-0.6717]}');var Fe;Fe=JSON.parse('{"type":"bezier","cw":0.1,"w":0.15,"cd":7,"chain":10,"p":[-0.6367,-0.6567,-0.3417,0.6242,-0.11,0.6892,0.6017,-0.6483]}');var Ge;Ge=JSON.parse('{"type":"bezier","cw":0.11,"w":0.07,"cd":7,"chain":9,"p":[-0.25,-0.575,-0.6617,0.2583,0.69,-0.37,0.5,0.4533]}');var Ae;Ae=JSON.parse('{"type":"bezier","cw":0.2,"w":0.05,"cd":7,"chain":7,"p":[-0.5433,-0.525,-0.7217,0.3933,0.47,0.4925,0.3917,-0.4667]}');var Ye;Ye=JSON.parse('{"type":"bezier","cw":0.1,"w":0.15,"cd":7,"chain":13,"p":[-0.5,-0.5,-0.25,-0.25,0.25,0.25,0.5,0.5]}');var Ve=()=>{const t=R.choice([e(x),e(P),e(S),e(O),e(k),e(N),e(J),e(z),e(T),e(W),e(D),e(I),e(C),e(L),e(E),e(_),e(F),e(G),e(A),e(Y),e(V),e(X),e(M),e(U),e(q),e(B),e(H),e($),e(j),e(K),e(Q),e(Z),e(ee),e(te),e(se),e(ie),e(oe),e(ne),e(re),e(ce),e(ae),e(he),e(le),e(pe),e(ue),e(de),e(ge),e(fe),e(ye),e(ve),e(we),e(me),e(be),e(xe),e(Pe),e(Se),e(Oe),e(ke),e(Ne),e(Je),e(Re),e(ze),e(Te),e(We),e(De),e(Ie),e(Ce),e(Le),e(Ee),e(_e),e(Fe),e(Ge),e(Ae),e(Ye)]);let s=JSON.parse(JSON.stringify(t));return(e=>{if(0!==e.w){e.w*=.1;for(let t=0;t<e.p.length;t+=2){const s=noise(1.3*e.p[t],1.3*e.p[t+1])*TWO_PI;e.p[t]+=cos(s)*e.w,e.p[t+1]+=sin(s)*e.w}}})(s),(e=>{const t=R.num(0,TWO_PI);for(let n=0;n<e.p.length;n+=2){const r=(s=e.p[n],i=e.p[n+1],o=t,{x:s*cos(o)-i*sin(o),y:s*sin(o)+i*cos(o)});e.p[n]=r.x,e.p[n+1]=r.y}var s,i,o})(s),s};const Xe=(e,t)=>function(e,t){let s=0;for(let i=0;i<e.collisionPoly.length;i+=2){s=i+2,s==e.collisionPoly.length&&(s=0);if(qe(t,e.scalePosition(e.collisionPoly[i]).x,e.scalePosition(e.collisionPoly[i+1]).y,e.scalePosition(e.collisionPoly[s]).x,e.scalePosition(e.collisionPoly[s+1]).y))return!0}return!1}(e,t),Me=e=>{e.size<config.minimumSize&&(e.kill=!0)},Ue=(e,t)=>{if(e.size>config.minimumSize&&t.size>config.minimumSize)return e.changeStatus("static"),void t.changeStatus("static");e.size>t.size?t.kill=!0:e.kill=!0};function qe(e,t,s,i,o){let n=0;for(let r=0;r<e.collisionPoly.length;r+=2){n=r+2,n==e.collisionPoly.length&&(n=0);if(Be(t,s,i,o,e.scalePosition(e.collisionPoly[r]).x,e.scalePosition(e.collisionPoly[r+1]).y,e.scalePosition(e.collisionPoly[n]).x,e.scalePosition(e.collisionPoly[n+1]).y))return!0}return!1}function Be(e,t,s,i,o,n,r,c){const a=((r-o)*(t-n)-(c-n)*(e-o))/((c-n)*(s-e)-(r-o)*(i-t)),h=((s-e)*(t-n)-(i-t)*(e-o))/((c-n)*(s-e)-(r-o)*(i-t));return a>=0&&a<=1&&h>=0&&h<=1}const He=e=>{drawingContext.setLineDash(e)};var $e=function(e){this.s=e||window,this.bowing=1,this.roughness=1,this.maxOffset=2,this.numEllipseSteps=9,this.ellipseInc=2*PI/this.numEllipseSteps,this.randomSeq=0,this.random=e=>(this.randomSeq++,abs(sin(e*this.randomSeq))),this.getOffset=function(e,t){return this.roughness*(this.random(t*e)*(t-e)+e)},this.buildEllipse=function(e,t,s,i,o,n){var r=this.getOffset(-.5,.5)-PI/2;this.s.beginShape(),this.s.curveVertex(this.getOffset(-o,o)+e+.9*s*cos(r-this.ellipseInc),this.getOffset(-o,o)+t+.9*i*sin(r-this.ellipseInc));for(var c=r;c<2*PI+r-.01;c+=this.ellipseInc)this.s.curveVertex(this.getOffset(-o,o)+e+s*cos(c),this.getOffset(-o,o)+t+i*sin(c));this.s.curveVertex(this.getOffset(-o,o)+e+s*cos(r+2*PI+.5*n),this.getOffset(-o,o)+t+i*sin(r+2*PI+.5*n)),this.s.curveVertex(this.getOffset(-o,o)+e+.98*s*cos(r+n),this.getOffset(-o,o)+t+.98*i*sin(r+n)),this.s.curveVertex(this.getOffset(-o,o)+e+.9*s*cos(r+.5*n),this.getOffset(-o,o)+t+.9*i*sin(r+.5*n)),this.s.endShape()},this.scribbleLine=function(e,t,s,i){var o=(e-s)*(e-s)+(t-i)*(t-i),n=this.maxOffset;this.maxOffset*this.maxOffset*100>o&&(n=sqrt(o)/10);var r=n/2,c=.2+.2*this.random(e+t*s*i),a=this.bowing*this.maxOffset*(i-t)/200,h=this.bowing*this.maxOffset*(e-s)/200;a=this.getOffset(-a,a),h=this.getOffset(-h,h),this.s.noFill(),this.s.strokeCap(ROUND),this.s.beginShape(),this.s.vertex(e+this.getOffset(-n,n),t+this.getOffset(-n,n)),this.s.curveVertex(e+this.getOffset(-n,n),t+this.getOffset(-n,n)),this.s.curveVertex(a+e+(s-e)*c+this.getOffset(-n,n),h+t+(i-t)*c+this.getOffset(-n,n)),this.s.curveVertex(a+e+2*(s-e)*c+this.getOffset(-n,n),h+t+2*(i-t)*c+this.getOffset(-n,n)),this.s.curveVertex(s+this.getOffset(-n,n),i+this.getOffset(-n,n)),this.s.vertex(s+this.getOffset(-n,n),i+this.getOffset(-n,n)),this.s.endShape(),this.s.beginShape(),this.s.vertex(e+this.getOffset(-r,r),t+this.getOffset(-r,r)),this.s.curveVertex(e+this.getOffset(-r,r),t+this.getOffset(-r,r)),this.s.curveVertex(a+e+(s-e)*c+this.getOffset(-r,r),h+t+(i-t)*c+this.getOffset(-r,r)),this.s.curveVertex(a+e+2*(s-e)*c+this.getOffset(-r,r),h+t+2*(i-t)*c+this.getOffset(-r,r)),this.s.curveVertex(s+this.getOffset(-r,r),i+this.getOffset(-r,r)),this.s.vertex(s+this.getOffset(-r,r),i+this.getOffset(-r,r)),this.s.endShape()},this.scribbleRect=function(e,t,s,i){var o=s/2,n=i/2,r=min(e-o,e+o),c=max(e-o,e+o),a=min(t-n,t+n),h=max(t-n,t+n);this.scribbleLine(r,a,c,a),this.scribbleLine(c,a,c,h),this.scribbleLine(c,h,r,h),this.scribbleLine(r,h,r,a)},this.scribbleEllipse=function(e,t,s,i){i=i||s;var o=abs(s/2),n=abs(i/2);o+=this.getOffset(.05*-o,.05*o),n+=this.getOffset(.05*-n,.05*n),this.buildEllipse(e,t,o,n,1,this.ellipseInc*this.getOffset(.1,this.getOffset(.4,1))),this.buildEllipse(e,t,o,n,1.5,0)}};const je={pokadots:e=>{const t=createGraphics(round(config.w),round(config.h));t.pixelDensity(1);const s=new $e(t);s.roughness=.75,s.maxOffset=.5;const{w:i,h:o,s:r}=Qe(e,t),c=30*r+5,a=Ze(t);t.noStroke(),t.fill(n(a));for(let e=0;e<i;e+=c)for(let t=0;t<o;t+=c)s.scribbleEllipse(e,t,.5*c*R.num(.9,1.1));return t},dotMatrix:e=>{const t=round(map(e.size,config.shape.minPatternSize,config.h,5,13)),s=createGraphics(t,t);return s.pixelDensity(1),s.background(n()),s.noStroke(),s.fill(n()),s.ellipse(s.width/2,s.height/2,t/4),s},grid:e=>{const t=createGraphics(round(config.w),round(config.h));t.pixelDensity(1),Ze(t);const s=new $e(t);s.roughness=.5,s.maxOffset=.5;const{w:i,h:o,s:n}=Qe(e,t);t.stroke(0,5),t.strokeWeight(.5*n+.5),t.strokeCap(PROJECT);const r=25*n+4;for(let e=0;e<i;e+=r)for(let i=0;i<o;i+=r)s.scribbleLine(e,0,e,t.height),s.scribbleLine(0,i,t.width,i);return t},lines:e=>{const t=createGraphics(round(config.w),round(config.h));t.pixelDensity(1),Ze(t);const s=new $e(t),{w:i,h:o,s:n}=Qe(e,t);t.stroke(0,175),t.strokeWeight(6*n+1);const r=(20*n+5)*R.dec();for(let e=0;e<i;e+=r)s.scribbleLine(e,0,e,o);return t},squares:e=>{const t=createGraphics(round(config.w),round(config.h));t.pixelDensity(1);const{w:s,h:i,s:o}=Qe(e,t),r=Ze(t);t.fill(n(r)),t.noStroke(),t.rectMode(CENTER);const c=40*o+5;for(let e=0;e<s;e+=c)for(let s=0;s<i;s+=c)t.push(),t.translate(e,s),t.rotate(R.num(-.15,.15)),t.square(0,0,.5*c),t.pop();return t},scatteredLines:e=>{const t=createGraphics(round(config.w),round(config.h));t.pixelDensity(1),Ze(t);let{w:s,h:i,s:o}=Qe(e,t);const r=round(100*o+50),c=new $e(t);t.stroke(n()),t.strokeCap(PROJECT),t.strokeWeight(3*o+2);for(let e=0;e<r;e++)t.push(),t.translate(R.num(0,s),R.num(0,i)),t.rotate(R.num(0,PI)),c.scribbleLine(-max(s,i),0,max(s,i),0),t.pop();return t},"10print":e=>{const t=createGraphics(round(config.w),round(config.h));t.pixelDensity(1),t.background(n()),t.stroke(n());let{w:s,h:i,s:o}=Qe(e,t);t.strokeWeight(6*o+2),t.noFill(),t.strokeCap(ROUND);const r=30*o+15;o=r;const c=R.dec()<.5;for(let e=0;e<s;e+=r)for(let s=0;s<i;s+=r)R.dec()<.5?c?t.line(e,s,e+o,s+o):(t.arc(e+o,s,o,o,HALF_PI,PI),t.arc(e,s+o,o,o,PI+HALF_PI,TWO_PI)):c?t.line(e+o,s,e,s+o):(t.arc(e,s,o,o,0,HALF_PI),t.arc(e+o,s+o,o,o,PI,PI+HALF_PI));return t},zigzag:e=>{const t=map(e.size,config.shape.minPatternSize,config.h,15,40),s=createGraphics(round(t),round(t/2));s.pixelDensity(1);const i=Ze(s),o=new $e(s);return s.stroke(n(i)),s.strokeCap(ROUND),s.strokeWeight(3),o.scribbleLine(0,s.height-2,.5*s.width,2),o.scribbleLine(.5*s.width,2,s.width,s.height-2),s}},Ke=(e,t)=>{return(s=je[e](t)).canvas?s=s.canvas:s.elt&&(s=s.elt),drawingContext.createPattern(s,i||"repeat");var s,i},Qe=(e,t)=>{const s=map(e.size,config.shape.minPatternSize,config.h,0,1);t.translate(e.scalePosition(e.boundaries.minX).x-50,e.scalePosition(e.boundaries.minY).y-50);return{b:50,w:e.scalePosition(e.boundaries.maxX).x-e.scalePosition(e.boundaries.minX).x+100,h:e.scalePosition(e.boundaries.maxY).y-e.scalePosition(e.boundaries.minY).y+100,s:s}},Ze=e=>(bgCol=null,R.dec()<.5&&(bgCol=n(),e.background(bgCol)),bgCol),et=e=>{const t=e.model.subDivided;curveTightness(e.model.curveThightness),beginShape();for(let s=0;s<t.length;s+=2)(0===s||s===t.length-2&&"curve"===e.model.type)&&vertex(e.scalePosition(t[s]).x,e.scalePosition(t[s+1]).y),curveVertex(e.scalePosition(t[s]).x,e.scalePosition(t[s+1]).y);endShape("poly"===e.model.type?CLOSE:void 0)},tt=e=>{const t=e.model.subDivided;beginShape();for(let s=0;s<t.length;s+=2)vertex(e.scalePosition(t[s]).x,e.scalePosition(t[s+1]).y);endShape("poly"===e.model.type?CLOSE:void 0)};class st{constructor(e){this.shape=e,this.shape.model.subDivided=this.shape.model.points,this.shape.model.curveThightness>=.99?(this.edgeType=R.choice(["straight","scribble"]),this.numOfSubDivisions=R.int(0,2)):(this.edgeType="curved",this.numOfSubDivisions=0);for(let e=0;e<this.numOfSubDivisions;e++)this.shape.model.subDivided=m(this.shape.model.subDivided,this.shape.model.type);this.calcStroke(),this.calcFill(),this.calcChain(),this.applyRules()}applyRules(){"bezier"===this.shape.model.type&&"chain"!==this.edgeType&&(this.edgeType="bezier",this.stroke.length>1&&(this.stroke=this.stroke.slice(0,1)),this.fill=null),"scribble"===this.fillType&&(this.stroke=[]),"poly"===this.shape.model.type&&this.stroke.length&&R.dec()<.3&&(this.fill=null),"pattern"!==this.fillType||this.stroke.length||(this.stroke=[{colour:this.fill.colour,weight:.2*this.shape.model.curveWeight,dashed:""}])}calcStroke(){"curve"===this.shape.model.type||"bezier"===this.shape.model.type?(this.stroke=[{colour:n(),weight:this.shape.model.curveWeight,dashed:""}],R.dec()<.5&&(this.stroke.push({colour:r(this.stroke[0].colour),weight:this.shape.model.curveWeight*R.num(.2,.9),dashed:""}),R.dec()<.3&&(this.stroke[1].dashed=`${R.int(3,10)}-${R.int(20,60)}`))):(this.stroke=[],R.dec()<.15&&(this.stroke=[{colour:n(),weight:.25*this.shape.model.curveWeight,dashed:""}]))}calcFill(){if("curve"===this.shape.model.type){if(!(this.shape.siz