memoscan
← all memos

Memo 0x1abe17eb…7af3e4 on Ethereum

window.onload=function(){let t=new class{constructor(){this.useA=!1;let t=function(t){let e=parseInt(t.substr(0,8),16),a=parseInt(t.substr(8,8),16),n=parseInt(t.substr(16,8),16),l=parseInt(t.substr(24,8),16);return function(){let t=((e|=0)+(a|=0)|0)+(l|=0)|0;return l=l+1|0,e=a^a>>>9,a=(n|=0)+(n<<3)|0,n=(n=n<<21|n>>>11)+t|0,(t>>>0)/4294967296}};this.prngA=new t(tokenData.hash.substr(2,32)),this.prngB=new t(tokenData.hash.substr(34,32));for(let t=0;t<1e6;t+=2)this.prngA(),this.prngB()}random_dec(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}random_num(t,e){return t+(e-t)*this.random_dec()}random_int(t,e){return Math.floor(this.random_num(t,e+1))}random_bool(t){return this.random_dec()<t}random_choice(t){return t[this.random_int(0,t.length-1)]}};function e(t,e,a,n,l){return n+(t-e)/(a-e)*(l-n)}parseInt(tokenData.hash.slice(0,16),16);var a,n,l,r,o,d,s,h,u,m,c=window.innerWidth,g=window.innerHeight,f=0,p=document.createElement("div"),y=document.createElement("div"),b="http://www.w3.org/2000/svg",v=180,A=240,_=g/25,M=v/A,S=g*M,x=g-_,w=g*M-_;c<g*M&&(x=c/M-(_=c/M/25),w=c-_,S=c);var N,I=w/v,C=.1*Math.floor(t.random_num(20,50)),E=Math.floor(t.random_num(0,100)),k=Math.floor(t.random_num(0,100)),D=Math.floor(t.random_num(80,250)),B="rgba("+D+","+D+","+D+")",H=.1*Math.floor(t.random_num(45,53)),W=.1*Math.floor(t.random_num(23,40)),R=.1*Math.floor(t.random_num(10,16)),L=Math.floor(t.random_num(0,10)),T=Math.floor(t.random_num(0,100)),z="#ebebeb",O=Math.floor(t.random_num(0,100)),P=!1,U=Math.floor(t.random_num(0,100)),F=Math.floor(t.random_num(0,2)),G=Math.floor(t.random_num(0,100)),q=Math.floor(t.random_num(0,41)),J=Math.floor(t.random_num(65,95)),K=Math.floor(t.random_num(72,112)),Q=2*Math.floor(t.random_num(1,4)),V=Math.floor(t.random_num(0,100)),X={namex:"void",hsl:"hsl(38,11%,7%)"},Y={namex:"metallic",hsl:"hsl(216,7%,57%)"},Z=[{namex:"forest",hsl:"hsl(120,100%,23%)"},{namex:"ocean",hsl:"hsl(239,100%,30%)"},{namex:"earth",hsl:"hsl(58,100%,19%)"},X,{namex:"nether",hsl:"hsl(333,100%,17%)"}],$=[{namex:"scorching",hsl:"hsl(16,100%,50%)"},{namex:"green",hsl:"hsl(123,100%,37%)"},{namex:"floral",hsl:"hsl(354,100%,66%)"},{namex:"dune",hsl:"hsl(60,100%,42%)"},Y],tt=Math.floor(t.random_num(0,Z.length)),et=Z[tt],at=(N=Z[tt],Z.filter(function(t){return t!=N}),$[Math.floor(t.random_num(0,$.length))]);(C=Math.round(10*C)/10,H=Math.round(10*H)/10,W=Math.round(10*W)/10,R=Math.round(10*R)/10,T>=25?(gridWidth=Math.floor(t.random_num(1,4)),gridHeight=gridWidth+1,L=5):(gridWidth=1,gridHeight=1),O>10&&(P=!0),U<60&&(o=2),U>=60&&U<80&&(o=1),U>=80&&(o=3),6!=L&&4!=L||(L=5),G<80)&&(d=(nt=[2.5,3])[Math.floor(t.random_num(0,nt.length))],s=d,h=d);if(G>=80&&G<90){var nt=[1.5,1.75,2];h=(lt=[2,2.5,3])[Math.floor(t.random_num(0,lt.length))],d=nt[Math.floor(t.random_num(0,nt.length))]*h,s=nt[Math.floor(t.random_num(0,nt.length))]*h}if(G>=90)if(V>=50){var lt=[10,15,20];d=(nt=[2.5,3])[Math.floor(t.random_num(0,nt.length))],s=nt[Math.floor(t.random_num(0,nt.length))],h=lt[Math.floor(t.random_num(0,lt.length))]}else{nt=[2.5,3];d=(lt=[10,15,20])[Math.floor(t.random_num(0,lt.length))],s=lt[Math.floor(t.random_num(0,lt.length))],h=nt[Math.floor(t.random_num(0,nt.length))]}if(1===q){var rt="transparent",ot=Y.hsl;z=X.hsl,p.style.color=ot}if(1!=q&&q<=39){rt=at.hsl,ot=et.hsl;p.style.color=ot}if(1!=q&&q>39){rt=X.hsl,ot=X.hsl;z=Y.hsl,p.style.color=rt,P=!1}document.body.style.backgroundColor="#000",y.style.visibility="hidden",document.body.appendChild(y),p.style.position="absolute",p.style.width="100%",p.style.textAlign="center",p.style.fontFamily="sans-serif",p.style.fontWeight="bold",p.style.letterSpacing=S/800+"px",p.style.zIndex="10000",p.style.textTransform="uppercase",p.style.bottom="0",p.style.fontSize=S/65+"px",p.style.marginBottom=S/75+"px",p.innerHTML+=tokenData.hash,function(t,o){var d=document.createElement("canvas");(l=document.createElement("div")).setAttribute("id","output"),l.style.width=w+_+"px",l.style.height=x+_+"px",l.style.padding="0px",l.style.margin="auto",l.style.display="block",l.style.position="absolute",l.style.top="0",l.style.bottom="0",l.style.left="0",l.style.right="0",l.style.overflow="hidden",l.style.backgroundColor=z,(u=document.createElementNS(b,"svg")).setAttribute("width",w),u.setAttribute("height",x),u.setAttribute("id","svgOutput"),u.style.padding="0px",u.style.margin="auto",u.style.display="block",u.style.position="absolute",u.style.top="0",u.style.bottom="0",u.style.left="0",u.style.right="0",u.style.overflow="visible",u.style.padding=_/2+"px ",(m=document.createElementNS(b,"svg")).setAttribute("width",w),m.setAttribute("height",x),m.setAttribute("id","svgOutput"),m.style.padding="0px",m.style.margin="auto",m.style.display="block",m.style.position="absolute",m.style.top="0",m.style.bottom="0",m.style.left="0",m.style.right="0",m.style.overflow="visible",m.style.padding=_/2+"px ",document.body.appendChild(l),r=document.createElement("img"),y.appendChild(r),r.onload=function(){a=this.width,n=this.height},d.id="canvasImg",y.appendChild(d);var s=v+"px",h=A+"px";document.getElementById("canvasImg").setAttribute("width",s),document.getElementById("canvasImg").setAttribute("height",h),document.getElementById("canvasImg").style.width=s,document.getElementById("canvasImg").style.height=h,document.getElementById("canvas");var c=document.getElementById("canvasImg").getContext("2d"),g=v/t,p=A/o,M=g;for(g>p&&(M=p),1==P&&(c.fillStyle=B),c.fillRect(0,0,v,A),i=0;i<t;i++)for(j=0;j<o;j++){var S,N=M/1.5,I=3*N,C=M/2-Q,E=g/2+i*g,k=A/o/2+j*A/o,D=e(f,0,t*o,E-J,E+K),H=e(L,0,10,k-p/2.5,k+p/2.5);1===gridHeight&&(D=e(F,0,1,E-80,E+100)),(S=c.createRadialGradient(D,H,N/2,D,H,I/2)).addColorStop(0,"white"),S.addColorStop(1,"#1e1e1e"),c.beginPath(),c.arc(g/2+i*g,k,C,0,2*Math.PI),c.fillStyle=S,c.fill(),f+=1}var W=canvasImg.toDataURL();r.setAttribute("src",W)}(gridWidth,gridHeight),setTimeout(function(){!function(){var t=document.createElement("canvas");t.id="cDither",y.appendChild(t);var c=document.getElementById("cDither"),g=c.getContext("2d");g.canvas.height=n,g.drawImage(r,0,0,a,n);var f=g.createImageData(v,A),_=(g.getImageData(10,100,1,1).data,0),M=0;for(let t=0;t<f.data.length;t+=4){var S=g.getImageData(_,M,1,1).data[0];f.data[t+0]=S,f.data[t+1]=S,f.data[t+2]=S,f.data[t+3]=255,(_+=1)>=a&&(_=0,M+=1)}for(let t=0;t<f.data.length;t+=4){var x=(S=f.data[t])/255/C-Math.round(S/255);f.data[t+0]=S,f.data[t+1]=S,f.data[t+2]=S,f.data[t+3]=255,S=(S=f.data[t+4])/255+7*x/16,f.data[t+4+0]=255*S,f.data[t+4+1]=255*S,f.data[t+4+2]=255*S,f.data[t+4+3]=255,S=(S=f.data[t-4+4*a])/255+3*x/16,f.data[t-4+4*a+0]=255*S,f.data[t-4+4*a+1]=255*S,f.data[t-4+4*a+2]=255*S,f.data[t-4+4*a+3]=255,S=(S=f.data[t+4*a])/255+5*x/16,E>=50&&(f.data[t+4*a+0]=255*S,f.data[t+4*a+1]=255*S,f.data[t+4*a+2]=255*S,f.data[t+4*a+3]=255),S=(S=f.data[t+4+4*a])/255+1*x/16,k>=50&&(f.data[t+4+4*a+0]=255*S,f.data[t+4+4*a+1]=255*S,f.data[t+4+4*a+2]=255*S,f.data[t+4+4*a+3]=255)}g.putImageData(f,0,0);var w=c.toDataURL();r.setAttribute("src",w),function(t,l,r){function d(e,a){var n=document.createElementNS(b,"ellipse");n.setAttributeNS(null,"cx",u+I/2*t),n.setAttributeNS(null,"cy",h+I/2*t),n.setAttributeNS(null,"rx",e*t),n.setAttributeNS(null,"ry",e*t),n.setAttributeNS(null,"fill",a),m.prepend(n)}for(i=0;i<n;i+=l)for(j=0;j<a;j+=t){var s=g.getImageData(j,i,1,1).data,h=I*i,u=I*j,c=e(s[0],0,255,0,1);c>=.9&&(1===o&&d(I/H,r),3===o&&d(I/R,r)),c>=.8&&c<.9&&1===o&&d(I/W,r),c>=.7&&c<.8&&(2===o&&d(I/R,r),1===o&&d(I/H,r)),c>=.6&&c<.7&&1===o&&d(I/W,r),c>=.5&&c<.6&&(2===o&&d(I/W,r),1===o&&d(I/W,r)),c>=.4&&c<.5&&(1===o&&d(I/R,r),3===o&&d(I/R,r)),c>=.3&&c<.4&&2===o&&d(I/W,r),c>=.1&&c<.2&&3===o&&d(I/R,r)}}(d,s,rt),function(t,l,r){function d(e,a){var n=document.createElementNS(b,"defs"),r=document.createElementNS(b,"mask"),o=document.createElementNS(b,"rect"),d=document.createElementNS(b,"circle"),i=document.createElementNS(b,"rect"),h="cut"+s,g="url(#"+h+")";r.setAttributeNS(null,"id",h),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"fill","white"),d.setAttributeNS(null,"cx",c+I/2*t),d.setAttributeNS(null,"cy",m+I/2*t),d.setAttributeNS(null,"r",e*t),d.setAttributeNS(null,"fill","black"),r.appendChild(o),r.appendChild(d),n.appendChild(r),u.appendChild(n),i.setAttributeNS(null,"x",c),i.setAttributeNS(null,"y",m),i.setAttributeNS(null,"height",I*t),i.setAttributeNS(null,"width",I*l),i.setAttributeNS(null,"fill",a),i.setAttributeNS(null,"stroke",a),i.setAttributeNS(null,"stroke-width",.7),i.setAttributeNS(null,"mask",g),u.appendChild(i)}var s=0;for(i=0;i<n;i+=l)for(j=0;j<a;j+=t){var h=g.getImageData(j,i,1,1).data,m=I*i,c=I*j,f=e(h[0],0,255,0,1);f>=.9&&2===o&&d(I/H,r),f>=.8&&f<.9&&2===o&&d(0,r),f>=.7&&f<.8&&3===o&&d(0,r),f>=.6&&f<.7&&(2===o&&d(I/H,r),1===o&&d(0,r)),f>=.5&&f<.6&&3===o&&d(0,r),f>=.4&&f<.5&&2===o&&d(I/W,r),f>=.3&&f<.4&&(1===o&&d(I/H,r),3===o&&d(I/W,r)),f>=.2&&f<.3&&(1!==o&&2!==o||d(I/W,r)),f>=.1&&f<.2&&(1!==o&&2!==o||d(0,r)),s+=1}}(h,h,ot),u.setAttribute("id",et.namex),m.setAttribute("id",at.namex),G>=90&&V>=50?(l.appendChild(u),l.appendChild(m)):(l.appendChild(m),l.appendChild(u)),l.appendChild(p)}()},200)};