memoscan
← all memos

Memo 0x620a2c3f…3d23cb on Ethereum

,thin:{...R.thinlines,background:.3<n()?"#111100":g},split:{angle:c(8)?2.2:1.8,ext:k.full.leftright,palette:()=>_,background:"#111100"}})},R.tiles2={name:"tiles2",ch:R.tiles.ch,style:t=>({base:{...R.reset,ext:k.full.topbottom,angle:u(t,.25),palette:()=>[g,x,!1,!1][r.i.side-1],background:"#660000"},type_2:{angle:b(t,.08),palette:()=>[x,"#008800"][r.i.piece%2],background:"#222200"},stripes_odd:{angle:h,stripes:()=>!0,background:_},thin:{...R.thinlines,background:"#111100"},split:{angle:c(8)?2.2:1.8,ext:k.full.leftright,palette:()=>_}})},R.tiles3={name:"tiles3",ch:{variations:{color:()=>c(11)?x:g,spacing:()=>6}},style:t=>({base:{...R.reset,ext:k.full.leftright,padding:()=>!1,angle:m(t,3<t.m.w?.3:.1),palette:()=>_,background:"#660000"},type_1:{palette:()=>[!1,!1,x,x][r.i.side-1]},divided_odd:{...R.thinlines,background:.2<n()?g:"#660000"},type_2:{palette:()=>[!1,!1,_,_][r.i.side-1]},stripes_odd:{angle:h,stripes:()=>!0},type_3:{palette:()=>[!1,!1,x,x][r.i.side-1]},type_0:{palette:()=>[!1,!1,_,_][r.i.side-1]},split:{angle:m(t,.035),palette:()=>[g,g,g,g][r.i.side-1]},thin:{...R.thinlines}})},r.variants=R[i.substyle];let s,a={i:0,r:y()},t=T.class("base").subs({m:7,th:s=[n(.05,.35),n(.05,.35),n(.05,.35),n(.05,.35)],fill:!0,class:"base"}).subs((t,e)=>"middle"===e.label?{m:2,y:n(.4,.6)}:[{m:2,y:s[2]+.2},{m:1,x:n(.5,.8)},{m:2,y:.8-s[0]},{m:1,x:n(.2,.5)}][t]).class(t=>"type_"+(t+c(19)+c(18))%4).subs((t,e)=>t%2==c(10)&&1.5<e.w&&.2<n()?{m:4,x:[.25/e.w,.25/e.w]}:{m:0,class:2<e.w&&a.i++==c(18,1,5)?"split":null});("tiles"===i.substyle||"tiles3"===i.substyle||"tiles2"===i.substyle&&.7<d(12))&&t.subs((t,e)=>!e._("split")&&.3<n()?{m:4,x:[.1-.15/e.w,.9-.15/e.w]}:{m:0}),t.subs((t,e)=>e._("type_2")&&!e._("split")&&.3<e.w?{m:2,y:.38/e.h,class:"stripes"}:{m:0}),t.class((t,e)=>e.w<=.4?"thin":null),t.subs((t,e)=>e._("thin")&&.5<n()?{m:2}:{m:0}),"tiles"!==i.substyle&&"tiles3"!==i.substyle||t.subs((t,e)=>!e._("split")&&!e._("thin")&&(e._("type_0")||e._("type_1"))&&1<e.h?{m:5,y:Array(2).fill(.38/e.h),class:"divided"}:{m:0}),[...Array(3)].forEach(()=>t.subs((t,e)=>e._("split")?{m:1,x:.5}:{m:0})),r.grid.data=t.out()}if("cross"===i.style){o.scrollmode=c(20)?"tri2I":"tri3N",o.offset=[.5,.5],o.transistion=-1,R.cross={name:"cross",ch:{variations:{color:()=>.5<n()?g:_,spacing:()=>[5,9][a()]}},style:t=>({base:{...R.reset,palette:()=>(r.i.side-1==E[0]||r.i.side-1==E[1]?f:y)(100),ext:k.full.topbottom,angle:3,padding:t=>t==["bottom","top"][a()]},tcol_odd:{...R.thinlines,background:.5<n()?"#002200":g},l1_middle:{padding:()=>!1,...s.s1&&{palette:()=>"#112200"}},l2_even:{angle:b(t,.05),background:["#112200",g][!c(18)]},l2_odd:{angle:b(t,.05),background:["#112200",g][!c(18)]},l2_middle:{angle:1.8,palette:()=>"#660000",background:w},l1_column_even:{padding:()=>!1,angle:[b(t,.05),p(t,.08)][s.s2],background:!1,...s.s3&&{palette:()=>"#660000"}},l1_column_odd:{background:[x,!1][a()],ext:k.full.topbottom,stripes:()=>!0},l1_even:{palette:()=>[f(180,230),_,y(100,230),!1][r.i.side-1],ext:k.full.topbottom,background:()=>"#111100"},l1_row_even:{palette:()=>f(),stripes:()=>2==r.i.side}})},R.cross2={name:"cross2",ch:{variations:{color:()=>.5<n()?g:_,spacing:()=>[6,10][a()]}},style:t=>({base:{...R.reset,ext:k.full.topbottom,angle:b(t,.08),padding:t=>!1,palette:()=>s.col,background:!1},tcol_odd:{...R.thinlines},l1_row_even:{angle:h,stripes:()=>!0,background:"#770000"},l1_row_odd:{angle:c(18)?p(t,.11):h},l2_even:{angle:h,stripes:()=>!0,background:"#770000"},l2_middle:{palette:()=>.2<d(18)?"#112200":x,angle:1.9}})},r.variants=R[i.substyle];let s={th1:.5<n()?a()?[...Array(4)].map((t,e)=>d(e%2?6:7,.15,.2)):[...Array(4)].map((t,e)=>e%2?d(7,.1,.2):d(6,.1,.15)):Array(4).fill(d(7,.1,.2)),th2:.65<n()?0:n(.08,.15),col:y(100,150)};s.s1=c(11)&&.2<s.th2?1:0,s.s1=!1,s.s2=c(19)&&.1<s.th1[0]&&.1<s.th1[2]?1:0,s.s3=.75<d(20),s.s4=.1<s.th1[0]&&.1<s.th1[2]&&c(8)?1:0,s.thin=t=>Array(2).fill(s.s4?.24/t.w:12*d(10,.02,.032)/t.w),r.grid.data=T.class("base").subs({m:7,th:s.th1,fill:!0,class:"l1"}).subs((t,e)=>e._("l1_middle")?{m:6,th:s.th2,fill:!0,class:"l2"}:e.h>e.w?{m:4,x:s.thin(e),class:"tcol"}:{m:0}).subs((t,e)=>e._((()=>{let a=[];return["none","l2_even","l1_even","l2_odd"].reverse().map((e,s)=>{for(let t=0;t<=s;t++)a.push(e)}),a[Math.floor(Math.max(.001,Math.min(.999,l[17]))*a.length)]})())&&"cross"==r.variants.style.name?{m:6,th:n(.15,.25),class:"l3"}:{m:0}).subs((t,e)=>e._("tcol_even")?{m:5}:{m:0}).subs((t,e)=>e._("tcol_even")?{m:5,y:[.1,.1],class:"l1_column"}:{m:0}).subs((t,e)=>e._("tcol_odd")?{m:5}:{m:0}).subs((t,e)=>e._("l1_even")?{m:2,y:.8,class:"l1_row"}:{m:0}).out()}if(r.each=e=>e.m.class.slice().reverse().forEach(t=>r.i.style=t?{...r.i.style||{},...r.variants.style(e)[t]}:r.i.style),r.style={...r.style,padding:t=>r.i.style.padding(t),extension:()=>r.i.style.ext,angle:()=>r.i.style.angle,palette:()=>r.i.style.palette(),background:()=>r.i.style.background,gradient:()=>r.i.style.gradient(),variations:{orientation:"horizontal",type:"stripes",spacing:()=>.5<n()?6:12,thickness:t=>6==t?t.spacing-2:t.spacing-4,color:()=>null,...r.variants.ch.variations,density:()=>r.i.style.stripes()}},!o.reload){e.distort={R:0,G:0,B:0,offset:o.offset||[0,0],colormode:o.colormode},e.feedback={offset:[0,c(10)?.5:-.5],scale:[1,1]},[e.distort.frequency,e.distort.amount,e.distort.shape]={tri2I:[2,.25,1],tri2N:[2,.245,1],tri3I:[3,.168,1],tri3N:[3,.163,1]}[o.scrollmode],{col:e.distort.color,o:[e.feedback.opacityR,e.feedback.opacityG,e.feedback.opacityB],ramps:t,brightness:e.feedback.brightness,contrast:e.feedback.contrast,title:o.colorname,id:o.colorId}=((e=!1,t)=>{let s=[];return[{id:"D",title:"Dawn",p:11,col:[52,129,180],o:[1,.95,.92],r:[.01,1.24,1.06,.98,.96]},{id:"K",title:"Rubin",p:9,col:[225,67,130],o:[.98,.95,.97],r:[.03,1.24,.99,.9,1.09]},{id:"LL",title:"Rayon Vert",p:8,col:[255,66,32],o:[.95,1,.96],r:[.02,1.22,1.07,.97,.96]},{id:"RR",title:"Afterglow",p:14,col:[13,200,225],o:[1,.88,.89],r:[.01,1.21,1.06,.86,.91]},{id:"E",title:"Aurora",p:10,col:[252,79,68],o:[.94,1,.99],r:[.03,1.24,1.06,.96,.9]},{id:"I",title:"Nebula",p:9,col:[54,195,130],o:[1,.94,1],r:[0,1.23,1.07,.96,1.01]},{id:"Z2",title:"Black and White",p:5,col:[110,110,110],o:[.95,.95,.96],r:[0,1.22,.97,1.03,1.07]},{id:"Z1",title:"Black and White",p:5,col:[110,110,110],o:[.95,.95,.96],r:[-.01,1.21,1.04,.97,1.1]},{id:"G",title:"Dusk",p:10,col:[205,97,38],o:[1,.89,.97],r:[.01,1.24,1.01,.89,1.05]},{id:"QQ",title:"Emerald",p:10,col:[48,195,169],o:[1.02,.95,.95],r:[.02,1.19,1.1,.98,1.01]},{id:"I22",title:"Nitro",p:9,col:[116,63,203],o:[.97,1.01,.97],r:[.08,1.15,1.03,1.11,.96]}].forEach(e=>{e.brightness=.02,e.contrast=1.08,e.ramps=[e.r[0]-e.brightness,e.r[1]-e.contrast,e.r[2]-e.o[0],e.r[3]-e.o[1],e.r[4]-e.o[2]];for(let t=0;t<e.p;t++)s.push(e)}),e?s.find(t=>t.id==e):s[Math.floor(100*Math.min(.99,t))]})(i.palette,d(26)),i.ramp=S,i.ramps.burst={brightness:(new S).w(1600).w(200,{id:"p1"}).a(.02,10).a(-.05,10).a(.1,25).a(-.07,255).a(.02,10).a(-.05,10).a(.16,25).a(-.13,255),contrast:(new S).w(1600).w(200,{id:"p1"}).w(20).a(.03,25).a(-.03,255).w(20).a(.02,25).a(-.02,255)},i.ramps.glitch={flicker:new S({start:.06}).w(400).a(-.06,200).w(1780,{id:"p1"}).a(.06,20),contrast:new S({start:.02}).w(400).a(-.02,200).w(900,{id:"p1"}).a(.02,200).w(700)},i.ramps.cosine=new S({start:1.7}).w(400).a(-1.7,200).w(900,{id:"p1"}).a(1.7,200).w(700),i.ramps.dissolve={brightness:(new S).w(400).a(-.5*t[0],200).w(200).a(-.5*t[0],200).w(500,{id:"p1"}).a(t[0],200).w(700),contrast:(new S).w(400).a(t[1],200).w(900,{id:"p1"}).a(-t[1],200).w(700),r:(new S).w(550).a(t[2],50).w(900,{id:"p1"}).a(-t[2],200).w(700),g:(new S).w(550).a(t[3],50).w(900,{id:"p1"}).a(-t[3],200).w(700),b:(new S).w(550).a(t[4],50).w(900,{id:"p1"}).a(-t[4],200).w(700)},i.ramps.transistion={trigger:(new S).w(1e3).w(12,{callback:i.reloadCahiers}).w(1388,{id:"p1"}),x:(new S).w(1e3).a(o.transistion,40,{easing:"quintic"}).w(1360,{id:"p1"})},i.ramps.controller=(new S).w(100,{id:"p1"}).w(2300,{callback:i.rerollRamps}),i.ramps.scroll=new S({name:"scroll"}).wait(0).a(c(10)?-1:1,2e3,{easing:"linear"}),o.delays=c(15)?[50*c(18,1,5),50*c(19,5,10)]:[50*c(19,5,10),50*c(18,1,5)],i.ramp.iterate(i.ramps,t=>"scroll"!=t.name&&t.offset(o.delays[0])),i.ramp.iterate(i.ramps,t=>"scroll"!=t.name&&t.offset(o.delays[1],"p1")),i.static&&(e.distort.amount=0,e.feedback.offset=[0,0],S.disable(i.ramps),e.feedback.ramps=[-.015,["LL","E","I22","QQ","I"].some(t=>t===o.colorId)?.015:.025,.02,.02,.02,["LL","E","I22","QQ","I"].some(t=>t===o.colorId)?.1:.14,1.8,d(11,.95,1.05)]);const r={};r.style=i.style,r.color=o.colorname,r.colorstyle=o.colorstyle,r.scrollmode=o.scrollmode,r.hash=i.fullHash,r.delays="p0:"+o.delays[0]+", p1:"+o.delays[1]}},i=new class{constructor(){e(this,"create",(t=800,e=600,s=1,a)=>{this._initCanvas(t,e,s,a)}),e(this,"clear",()=>{const t=this.context;t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT)}),e(this,"loadShader",async t=>{const e="undefined"!=typeof shadersSource?this._loadShaderFromSource(t,shadersSource):await this._loadShaderSource(t),s={},a=this.context;return s.frag=a.createShader(a.FRAGMENT_SHADER),a.shaderSource(s.frag,e.fragment),a.compileShader(s.frag),s.vert=a.createShader(a.VERTEX_SHADER),a.shaderSource(s.vert,e.vertex),a.compileShader(s.vert),s.prog=a.createProgram(),a.attachShader(s.prog,s.vert),a.attachShader(s.prog,s.frag),a.linkProgram(s.prog),a.detachShader(s.prog,s.vert),a.detachShader(s.prog,s.frag),s.uniforms={},s.uniforms.u_resolution=a.getUniformLocation(s.prog,"u_resolution"),s.uniforms.u_time=a.getUniformLocation(s.prog,"u_time"),s.attributes={},s.attributes.a_position=a.getAttribLocation(s.prog,"a_position"),s}),e(this,"startShader",(t,e=this.width,s=this.height)=>{this.shader=t;const a=this.context;a.useProgram(this.shader.prog),a.uniform2f(this.shader.uniforms.u_resolution,e,s),this.shader.uniforms.u_time&&a.uniform1f(this.shader.uniforms.u_time,this.time)}),e(this,"endShader",()=>{const t=this.context;t.enableVertexAttribArray(this.shader.attributes.a_position),t.bindBuffer(t.ARRAY_BUFFER,this.buffer),t.vertexAttribPointer(this.shader.attributes.a_position,2,t.FLOAT,!1,0,0),this.shader=null}),e(this,"setU",(t,e,s)=>{const a=this.context,i=a.getUniformLocation(this.shader.prog,e);if(!i)return!1;switch(t){case"float":a.uniform1f(i,s);break;case"float[]":a.uniform1fv(i,s);break;case"vec2":a.uniform2f(i,s[0],s[1]);break;case"vec3":a.uniform3f(i,s[0],s[1],s[2]);break;case"vec3[]":a.uniform3fv(i,s);b