0xe017…79a8

All memos sent from and to 0xe017…79a8.

let project5555=t=>{class e{constructor(t,e){this.n=t,this.c=e}}class l{constructor(t){this.p=t}interpolate(t){let e=this.p.length;if(0==e)return 0;let l=Math.floor(t),f=t-l,a=this.p[(l+e-1)%e],n=this.p[l%e],o=this.p[(l+1)%e],r=this.p[(l+2)%e];return(((3*(n-o)-a+r)/2*f+(o+o+a-(5*n+r)/2))*f+(o-a)/2)*f+n}}class f{constructor(t,e,l,f,a){this.x=t,this.y=e,this.s=l,this.c=f,this.a=a}manhattan(){let t=t=>t.map((t=>t<0?-t:t)).reduce(((t,e)=>t+e),0);return t(this.x)+t(this.y)}}let a,n,o,r,h,i,s,c,d,p,g="#000",u="#fff",w=(t,e,l)=>[t=(52757767*t+1)%85363793,t/85363793*(l-e)+e],m=(t,e)=>{let l;return[t,l]=w(t,0,1),[t,Math.floor(Math.log(1-l)/Math.log(1-e))]},b=(t,e)=>{let l=Math.exp(-e),f=1,a=-1;for(;f>l;){let e;[t,e]=w(t,0,1),f*=e,a++}return[t,a]},M=[new e("Anaglyph",[]),new e("Stealth",[g,"#111","#222","#333","#444","#555"]),new e("Checkerboard",[g,u]),new e("RGB",["#f00","#0f0","#00f"]),new e("Fire",["#ff0000","#ff5a00","#ff9a00","#ffce00","#ffe808"]),new e("Ice",["#508df4","#69b7ff","#a9daff","#e8f3ff",u]),new e("Green",["#01ff01"]),new e("Pink",["#fadde1","#ffc4d6","#ffa6c1","#ff87ab","#ff5d8f","#ff97b7","#ffacc5","#ffcad4","#f4acb7"]),new e("Gold",["#ffda3d","#ffd53e","#fecf3e","#fdc43f","#fdbe39","#fdb833"]),new e("Silver",[u,"#eee","#ddd","#ccc","#bbb","#aaa"]),new e("Summer",["#f94144","#f3722c","#f8961e","#f9844a","#f9c74f","#90be6d","#43aa8b","#4d908e","#577590","#277da1",u])],S=M.length,y=2*Math.PI,C=parseInt(t.substring(t.length-6),16);for(let t=0;t<S;t++){let l=M[t].c;M.push(new e("Sparse "+M[t].n,l.concat(Array(l.length).fill("rgba(0,0,0,0)"))))}[C,a]=w(C,0,M.length),n=M[Math.floor(a)],[C,a]=w(C,0,555),o=a>=9,[C,a]=w(C,0,555),r=a>=4,[C,a]=w(C,0,555),h=a>=16,[C,a]=b(C,555),i=a,[C,a]=m(C,.8),s=12*(a+1),[C,a]=m(C,.8),c=12*(a+1),[C,a]=b(C,1),d=6*(a+1),[C,a]=w(C,0,203),p=a<8?180:a<28?155:a<78?120:90,[C,a]=w(C,0,155);let x=a<5?0:a<30?.5:1,I=d%2==0?d-1:d,v=n.n.startsWith("Sp"),P=n.n.endsWith("ph"),R=1/d,T=1/(1+2*Math.tan(p*y/720)),W="rgba(0,0,0,0.265625)",k=t=>180==p?0==t?1:0:Math.pow(T,R*t),F=()=>{let t,e=P?v?M[9+S]:M[9]:n;return[C,t]=w(C,0,e.c.length),e.c[Math.floor(t)]},G=(t,e=0,a=u)=>{let n=t.getContext("2d"),m=Math.min(t.width,t.height),b=m/2,M=t.width/2,S=t.height/2;if(n.fillStyle=g,n.fillRect(0,0,t.width,t.height),o){let t=m/500;n.fillStyle=u;for(let l=0;l<i;l++){let l,f,a=0;[C,l]=w(C,-b,b-1),[C,f]=w(C,-b,b-1),P&&([C,a]=w(C,0,1/4),a*=e*m),n.fillRect(M+l-t/2+a,S+f-t/2,t,t)}}if(r){let t=m/(2*s+1),f=m/s/10,a=[];for(let e=0;e<c;e++){let e;[C,e]=w(C,0,2),a.push(e*t)}let o=new l(a);for(let l=0;l<s;l++){let a=(l+.5)*t,r=1+l/s;increment=2/t/c,n.strokeStyle=F(),n.lineWidth=f*r,n.beginPath();for(let t=0;t<y;t+=increment){let l=t/y*c,f=a+o.interpolate(l),h=e*m*r/2*k(1),i=f*Math.cos(t)+M+h,s=f*Math.sin(t)+S;0==t?n.moveTo(i,s):n.lineTo(i,s)}n.closePath(),n.stroke()}}if(h){let t=t=>{let e=t?x:x/2;return[e,e]},l=(t,e=!1)=>{let l=t?x:x/2;return e?[l,0]:[0,l]},a=[],o=d%2==0,r=Math.floor((d+1)/2),h=Math.floor(d/2),i=o?1:.5;for(let e=0;e<r;e++){let n=e+i;a.push(new f([-i,i],[-n,-n],[0,0],F(),W)),a.push(new f([-i,i],[n,n],t(0==e&&o),F(),W));for(let t of[-1,1])a.push(new f([n*t,n*t],[-i,i],l(o),F(),W))}for(let e=0;e<r;e++)for(let n=0;n<h;n++){let r=e+i,h=n+i,s=F();for(let l of[-1,1])a.push(new f([h*l,h*l+l],[-r,-r],[0,0],s,W)),a.push(new f([h*l,h*l+l],[r,r],t(0==e&&o),s,W));for(let t of[[-1,-1],[-1,1],[1,-1],[1,1]])a.push(new f([r*t[0],r*t[0]],[h*t[1],(h+1)*t[1]],l(!1,t[1]<0),s,W))}a.sort(((t,e)=>e.manhattan()-t.manhattan()));let s=(t,e,l=0)=>{let f=[],a=[],n=[],o=k(1);for(let t of e.x)f.push((t*R+l)*m);for(let t of e.y)a.push(t*R*m);for(let t of e.s)n.push(k(t));let r=f[0]<f[1]?.5:f[0]>f[1]?-.5:0,h=a[0]<a[1]?.5:a[0]>a[1]?-.5:0,i=[[f[0]-r,a[0]-h],[f[1]+r,a[1]+h],[f[1]*o+r,a[1]*o+h],[f[0]*o-r,a[0]*o-h]],s=[[f[0]*n[0]-r,a[0]*n[0]-h],[f[1]*n[1]+r,a[1]*n[1]+h],[f[1]*o+r,a[1]*o+h],[f[0]*o-r,a[0]*o-h]],c=e=>{t.beginPath();for(let l=0;l<i.length;l++){let f=e[l][0]+M,a=e[l][1]+S;0==l?t.moveTo(f,a):t.lineTo(f,a)}t.closePath(),t.fill()};t.fillStyle=e.c,c(i),180==p&&0!=x||(t.fillStyle=e.a,c(s))};for(let t of a)s(n,t,e)}n.globalCompositeOperation="multiply",n.fillStyle=a,n.fillRect(0,0,m,m)};return{metadata:{Theme:n.n,"Star Count":(o?i:0).toString(),"Ring Count":(r?s:0).toString(),"Ring Complexity":c.toString(),"Box Count":(h?I*I:0).toString(),FOV:180==p?"Infinity":155==p?"Ultra Wide":120==p?"Wide":"Normal","Shadow Depth":0==x?"Eclipse":.5==x?"Half Moon":"Full Moon"},draw:t=>{let e=Math.min(t.width,t.height),l=(t.width-e)/2,f=(t.height-e)/2,a=t.getContext("2d");if(P){let t=createCanvas(e,e),n=createCanvas(e,e),o=C;G(t,.025,"#f00"),C=o,G(n,-.025,"#0ff"),a.globalCompositeOperation="lighter",a.drawImage(t,l,f),a.drawImage(n,l,f)}else{let t=createCanvas(e,e);G(t),a.drawImage(t,l,f)}}}};