memoscan
← all memos

Memo 0x0d0dec39…092e0d on Ethereum

we=De[0].ds);let Ve=r.random()>.6&&we>2,k=r.pick([3,4,5]);const fe=r.random();fe<.1&&(k=1);fe>.77&&(k=10);fe>.88&&(k=30);fe>.98&&(k=100);Y[0]==1&&(k=Math.min(30,k));k==1&&(Ve=!1);k==100&&(le=r.pick([0,20,22,23]),P=G[le]);let ke=.1;k==30&&(ke*=.7);k==100&&(ke*=.4);let Q=.015;k==4&&(Q=.015);k==5&&(Q=.025);k==10&&(Q*=2);k==30&&(Q*=r.range(5,7));k==100&&(Q*=5);let Pt=(Y[0]==1,0),He=18;const $e={x:r.range(.02,.04),y:1};let _t=Math.floor(r.random()*ge.length),v=ge[_t],qe=.2,Me=P.filter(l=>l.si);Me.length&&(qe=Me[0].si);let Ee=.1,Be=P.filter(l=>l.hsi);Be.length&&(Ee=Be[0].hsi);Y[0]==1&&(Ee*=.5);let se=[1,.5],Fe=P.filter(l=>l.gl);Fe.length&&(se=Fe[0].gl);P.filter(l=>l.ng).length&&(se[0]=se[1]=1);const Se={x:(r.random()>=.65,1),y:r.random()<=.7?Y[0]==1?1:0:1};let We="Hot pressed";Se.y==1&&(We="Cold pressed");Y[0]==1&&(ye=xe[ce]);const Dt={Graphite:Z?"Yes":"No",Name:Z?"Unknown":ye,Time:Z?"Unknown":Ct,ppr:We,Guide:k+""};console.log(Dt);const N={crlchnk1:v.crlchnk1?v.crlchnk1:U.crlchnk1,crlchnks:v.crlchnks?v.crlchnks:U.crlchnks,crlchnks1:v.crlchnks1?v.crlchnks1:U.crlchnks1,crlchnks2:v.crlchnks2?v.crlchnks2:U.crlchnks2,crlchnk2:v.crlchnk2?v.crlchnk2:U.crlchnk2,wrapx:v.wrapx?r.pick(v.wrapx):U.wrapx,crlxps:v.crlxps?v.crlxps:U.crlxps,crlbse:v.crlbse?v.crlbse:U.crlbse,crlsck2:v.crlsck2?v.crlsck2:U.crlsck2,crlpses:v.crlpses?v.crlpses:U.crlpses,rtfmla:v.rtfmla?v.rtfmla:U.rtfmla,d:v.d?v.d:U.d,rtaddfmla:v.rtaddfmla?r.pick(v.rtaddfmla):U.rtaddfmla,rtswlfmla:v.rtswlfmla?r.pick(v.rtswlfmla):U.rtswlfmla,swl:v.swl?r.pick(v.swl):U.swl,crlwrpscl:v.crlwrpscl?r.pick(v.crlwrpscl):U.crlwrpscl};N.crlsck2+=r.range(-.1,.1);k==100&&(N.crlsck2+=r.range(0,.2));const e={isBuild:!0,width:4961*be,height:7016*be,scl:be,rnd:r.random(),renderDebug:!1,debugView:0,animated:!1,step:He,minStep:Pt,maxStep:He,mode:0,form:N,nbShapes:100,strongStrokes:P.filter(l=>l.hs).length>0,isDark:P.filter(l=>l.d!==void 0).length,issqusse:[0,Z?1:0],paletteIdx:le,palette:P,night:Y,sunColor:It,bgColor:"#f5f1e5",bgColorScale:1.7,darkenColor:"#666666",rotate:r.random()<.5?r.range(0,.005)*r.pick([-1,1]):Math.min(r.range(.008,.014),.013)*r.pick([-1,1]),rotateFreq:r.pick([.1,.5,1,2]),artdens:we,artNbColors:2,artgrdlmt:{x:se[0],y:se[1]},grainResScale:1,useContour:!0,contourWidth:4,contourMaskedByframe:!0,nbLinesX:k,nbLinesY:10,cellBorderSize:Q,skipThreshold:1.2,nsyclIntensity:.5,ogclint:.05,hstkIntensity:Ee,fzzstkint:-.45,darkIntensity:Z?-.1:-2.2,globalRot:0,fllclls:{x:Ve,y:r.pick([.8,.9])},edgeWidth:ke,pertubScale:1,pertubUVScale:1,pertubUVTranslateX:-2.2+r.range(-2,2),pertubUVTranslateY:r.range(-.5,.5),clattScale:0,translateUVX:0,blendppr:2,blendHighlights:1.3,blendHighlightsBg:1.3,scrch:$e,oscrch:$e,wearSize:{x:18,y:.5,z:2,w:20},frameParams:{x:r.pick([100,200,400])+r.random()*50,y:r.pick([20,10,5]),z:r.range(40,80),w:r.range(500,1e3)},pprType:{x:Se.x,y:Se.y},ppruvfsst:{x:r.random()>.5?0:r.random()*.3*(r.random()>.5?1:-1),y:r.random()>.4?r.random()*.01:0},ppruvdir:{x:r.random()>.5?1:-1,y:r.random()>.5?1:-1},wrapScaleX:r.range(-.05,.05)*r.range(.9,1.5),wrapScaleY:r.range(-.05,.05)*r.range(.9,1.5),clddegtrslt:{x:r.range(-1,1),y:r.range(-1,1)},curl:{pos:{x:r.range(-5,5),y:r.range(-5,5)},scl:{x:1,y:1},wrap:{x:N.crlwrpscl[0],y:N.crlwrpscl[1]}},ucllff:{x:-Math.floor(r.random()*10)/10,y:Math.floor(r.random()*10)/10},flip:{x:r.random()>=.5?1:-1,y:r.random()>=.5?1:-1},pclstkIntensity:qe,darken:0,dirtBlend:-2,dirts:[{intensity:.3,freq:3,scale:{x:1,y:3},levels:{x:0,y:.3}},{intensity:.5,freq:r.range(4,6),scale:{x:r.range(2,4),y:3},levels:{x:0,y:.3}},{intensity:3,freq:20,scale:{x:1,y:1},levels:{x:r.range(-.03,0),y:r.range(.13,.18)}},{intensity:.4,freq:3,scale:{x:4,y:1},levels:{x:0,y:.3}}],swl:N.swl,hsft:r.range(0,.1),arthsft:0,artcntrst:.82,artbrhtnss:0,artstrtn:4.32,artxpsr:-1.09,cntrst:1.14,brhtnss:0,strtn:.43,xpsr:-.26};e.artcntrst=3;e.artbrhtnss=1.15;e.artstrtn=1.2;e.artxpsr=-.65;e.cntrst=2.5;e.brhtnss=-1.35;e.strtn=.89;e.xpsr=1.39;e.pprType.y==1&&(e.artbrhtnss=1.085);let Ae=r.pick(N.crlpses);e.curl.pos.x=Ae[0];e.curl.pos.y=Ae[1];const de=N.d;e.curl.pos.x+=r.range(-de,de);e.curl.pos.y+=r.range(-de,de);e.isDark&&(e.pclstkIntensity=0,e.nsyclIntensity=.7);e.nbLinesX<=3?e.fllclls.x=!1:e.nbLinesX==10&&(e.fllclls.x=r.random()<=.7,e.fllclls.y=r.pick([.7,.8,.9]));e.night[0]==1&&(e.paletteIdx=ce,e.palette=_e,e.isDark=!1);if(Z){e.night[0]=0;const l=17;P=G[l],P[0].i=.7,P[1].i=.3,ye=xe[l],e.palette=P,e.paletteIdx=l,e.artdens=r.pick([4,6]),e.cntrst=2.3,e.brhtnss=-1.32,e.strtn=-.6,e.xpsr=2,e.hstkIntensity=.07,e.pclstkIntensity=.1,e.issqusse[1]=1}const Le=(l,c,s)=>Math.min(Math.max(l,c),s),ne=(l,c,s)=>{c/=100,s/=100;let a=(1-Math.abs(2*s-1))*c,o=a*(1-Math.abs(l/60%2-1)),t=s-a/2,i=0,u=0,f=0;return 0<=l&&l<60?(i=a,u=o,f=0):60<=l&&l<120?(i=o,u=a,f=0):120<=l&&l<180?(i=0,u=a,f=o):180<=l&&l<240?(i=0,u=o,f=a):240<=l&&l<300?(i=o,u=0,f=a):300<=l&&l<360&&(i=a,u=0,f=o),i=Math.round((i+t)*255),u=Math.round((u+t)*255),f=Math.round((f+t)*255),{r:i,g:u,b:f}},oe=l=>{if(l.s)return l;let c=0,s=0,a=0;l.length==4?(c="0x"+l[1]+l[1],s="0x"+l[2]+l[2],a="0x"+l[3]+l[3]):l.length==7&&(c="0x"+l[1]+l[2],s="0x"+l[3]+l[4],a="0x"+l[5]+l[6]),c/=255,s/=255,a/=255;let o=Math.min(c,s,a),t=Math.max(c,s,a),i=t-o,u=0,f=0,R=0;return i==0?u=0:t==c?u=(s-a)/i%6:t==s?u=(a-c)/i+2:u=(c-s)/i+4,u=Math.round(u*60),u<0&&(u+=360),R=(t+o)/2,f=i==0?0:i/(1-Math.abs(2*R-1)),f=+(f*100).toFixed(1),R=+(R*100).toFixed(1),{h:u,s:f,l:R}};class Vt{constructor(c={}){W(this,"play",()=>{this._isPlaying||(this._isPlaying=!0,this._frame())});W(this,"pause",()=>{!this._isPlaying||(this._isPlaying=!1)});W(this,"togglePlay",()=>{this._isPlaying?this.pause():this.play()});W(this,"_frame",()=>{!this._isPlaying||(this._rafId=requestAnimationFrame(this._frame),this.render())});W(this,"_init",()=>{this._bindEvents(),this._resize(),this.init()});W(this,"_resize",()=>{const c=window.innerWidth,s=window.innerHeight,a=this.width,o=this.height,t=this.canvas;this._displayWidth=a*s/o,this._displayHeight=s-this.heightPadding,this._displayWidth>c&&(this._displayWidth=c,this._displayHeight=this._displayWidth*o/a),t.width=a,t.height=o,t.style.width=`${this._displayWidth}px`,t.style.height=`${this._displayHeight}px`});W(this,"_onKeyUp",({keyCode:c})=>{(c==32||c==69)&&window.render(),c==82&&!e.isBuild&&window.location.reload(),c==37&&(e.step--,e.step=Le(e.step,e.minStep,e.maxStep),window.render()),c==39&&(e.step++,e.step=Le(e.step,e.minStep,e.maxStep),window.render()),c==40&&(e.step=e.minStep,window.render()),c==38&&(e.step=e.maxStep,window.render())});W(this,"_bindEvents",()=>{window.addEventListener("keyup",this._onKeyUp),window.addEventListener("resize",this._resize)});const s=document.createElement("canvas");s.id="artwork",s.style.boxShadow="",this.dpr=c.dpr||window.devicePixelRatio,this.width=c.width||window.innerWidth,this.height=c.height||window.innerHeight,this.heightPadding=0,this._isPlaying=!1,this._displayWidth=this.width,this._displayHeight=this.height,this.canvas=s,s.width=this.width,s.height=this.height,this.gl=s.getContext("webgl"),this.maxUniforms=this.gl.getParameter(this.gl.MAX_VERTEX_UNIFORM_VECTORS),this.r=new THREE.WebGLRenderer({canvas:s,preserveDrawingBuffer:!1}),this.r.setClearColor("#333333",1),this.r.gammaFactor=2.2,this.r.outputEncoding=THREE.sRGBEncoding,this.gl.getParameter(this.gl.MAX_RENDERBUFFER_SIZE),this.gl.getParameter(this.gl.MAX_VIEWPORT_DIMS),this._rafId=0,this._init()}init(){}render(){}resize(){}}var j="attribute vec2 aPosition;attribute vec2 aTexCoord;varying vec2 vUv;void main() {gl_Position = vec4(position, 1.);vUv = uv;}",Ht=`uniform sampler2D tColor1;uniform sampler2D tColor2;uniform sampler2D tColor3;uniform vec2 ures;uniform vec2 ucntr;uniform float uskptsh;uniform float uhgtml;uniform vec4 ushp[nbshp];uniform vec4 ushpcl[nbshp];uniform float uRotations[nbshpROT];uniform float ugrd;uniform float uuseslctcl;uniform vec4 uslctcls;uniform float uRenderRot;uniform float uShift;uniform float uStep;uniform vec2 ugrdlmt;varying vec2 vUv; float map(float value, float min1, float max1, float min2, float max2) {return min2 + (value - min1) * (max2 - min2) / (max1 - min1);} float rand(vec2 co){return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453);} \${blend}\${adjust} float drwrct(vec2 coord, vec2 dimensions, vec2 offset) {vec2 rct = step(offset, coord);rct *= step(coord, offset + dimensions);return rct.x * rct.y;}float drawCircle(vec2 coord, float radius) {return step(length(coord), radius);}float drawCircle(vec2 coord, float radius, float innerRadius) {return step(length(coord), radius) - step(length(coord), innerRadius);}void main() {float ratio = ures.x/ures.y;float stripes = step( fract(vUv.y*50.), .5 );vec3 rects = vec3(0.);for (int i = 0; i < nbshp; i++) {float x = ushp[i].x;float y = 1.-ushp[i].y * 2.;float w = ushp[i].z * 1.;float h = ushp[i].w * uhgtml;float p = map(vUv.x, x, x+w, -1., 1.);float py = map(vUv.y, y, y+h, 0., 1.);vec3 color = ushpcl[i].rgb;float opacity = abs(ushpcl[i].a);float rnd = rand(vec2(x,y));float mapper = map(vUv.x, x, x+w, 1. ,0.);color *= map(vUv.x, x, x+w, ugrdlmt.x, ugrdlmt.y);vec3 color180 = hsft(color, uShift);color = mix(color, color180, mapper);vec3 colorStripes = hsft(color, -.5);colorStripes = brhtnss(colorStripes, .5);if (uRenderRot