Gauss Chain 008
Policy: ac8320...ada4
Owner:
Metadata:
{ "name": "Gauss Chain 008", "seed": 2536, "files": [ { "src": [ "data:text/html;utf8,<html><head><body style='margin:0;overflow:h", "idden'><canvas id='tc' tabindex='1'><a id='link'></a><script>con", "st Q=s=>eval('(v,a,b,c,d)=>'+s),CHAR=e=>String.fromCharCode(e),F", "or=Q('{for(v=v;v<a;v++)b(v,v/(a-1))}'),FoE=Q('For(0,v.length,(i,", "t)=>a(v[i],i,t))'),cR=Q('`rgba(${v},${a},${b},${c})`'),cH=Q('`hs", "la(${v},${a}%25 ,${b}%25 ,${c})`'),cM=Q('cR(v,v,v,a)'),cHx=e=>'r", "gb('+((e=parseInt(e,16))>>16&255)+','+(e>>8&255)+','+(255&e)+')'", ";let P=(v,a,b,c)=>{for(b=b.split(':'),c=0;c<b.length;c+=2)eval(`", "C${b[c]}=${v}=>ctx.${b[c+1]}${a}`)},t='(...a)';P(t,t,'TC:clip:RT", ":rect:GT:getTransform:DI:drawImage:FT:fillText:EL:ellipse:BP:beg", "inPath:CP:closePath:MT:moveTo:LT:lineTo:BC:bezierCurveTo:ST:stro", "ke:VS:save:VR:restore:TR:setTransform:XT:translate:XS:scale:XR:r", "otate:FR:fillRect:RE:rect:FL:fill'),P('a','=a','SBr:shadowBlur:L", "W:lineWidth:TA:textAlign:TB:textBaseline:SC:shadowColor:SS:strok", "eStyle:GC:globalCompositeOperation:FS:fillStyle');const DEF=(e,t", ")=>{e=e??CANV,t=t??_R,CTR(t,0,0,t,0,0),CFS(e),CSS(e),CTA('center", "'),CSB(0),MUL()},CSB=e=>CSBr(e*_R),DCE=e=>document.createElement", "(e),CCX=e=>ctx=e||CTX,FNT=e=>ctx.font=e+'px Arial',TXT=(e,t,...r", ")=>{CFS(e),FNT(t),CFT(...r)},ELI=(e,...t)=>{CFS(e),CBP(),CEL(...", "t),CFL()},ADD=e=>CGC('screen'),MUL=e=>CGC('source-over'),CWH=(e,", "t,r)=>{e.width=t,e.height=r||t},BG=e=>RECT(e,0,0,_W,_H),RECT=(e,", "...t)=>{CBP(),CFS(e),CFR(...t),CFL()},AA=(e,t)=>e.imageSmoothing", "Enabled=e.mozImageSmoothingEnabled=e.webkitImageSmoothingEnabled", "=t;function v2(e,t){var r=this,C=(e,t)=>(r.x=e||0,r.y=t||0,r);C(", "e,t),Object.assign(r,{set:C,circ(e){return C(sin(e),-cos(e))},pe", "rp(e){return C(r.y,-r.x)},len(e){return sqrt(r.x*r.x+r.y*r.y)},d", "ot(e){return r.x*e.x+r.y*e.y},norm(e){return r.div(r.len())},rad", "(e){return atan2(r.x,-r.y)},add(e){return C(r.x+e.x,r.y+e.y)},su", "b(e){return C(r.x-e.x,r.y-e.y)},mv(e){return C(r.x*e.x,r.y*e.y)}", ",inc(e){return C(r.x+e,r.y+e)},mul(e){return C(r.x*e,r.y*e)},div", "(e){return C(r.x/e,r.y/e)},cpy(e){return V2(r.x,r.y)}})}V2=Q('ne", "w v2(v,a)'),FoE(Object.getOwnPropertyNames(Math),(i=>eval(`${i}=", "Math.${i}`)));const Lerp=Q('(1-v)*a+v*b'),Wrap=Q('v<a?b-(a-v)%25", " (b-a):a+(v-a)%25 (b-a)'),Mapf=Q('b-a==0?c:c+(((v-a)/(b-a))*(d-c", "))'),Clamp=Q('v<a?a:min(b,v)'),Ease=e=>-(cos(PI*e)-1)/2,TAU=2*PI", ";class RNG{constructor(e){var t=this,r=4294967295,C=123456789+e&", "r,a=987654321-e&r,n=65535;t.r=e=>(((a=36969*(a&n)+(a>>>16)&r)<<1", "6)+((C=18e3*(C&n)+(C>>>16)&r)&n)>>>0)/(r+1),t.f=(e,r)=>e+t.r()*(", "r-e),t.i=(e,r)=>floor(t.f(e,r)),t.c=e=>t.r()<e,t.item=e=>e[t.i(0", ",e.length)]}}CANV=cM(220,1),WALL=cHx('f57411'),SHDW=cHx('0f0a06'", "),FPS=60;const SEED=2536,TAG='PG-09-008',PX=1e3,HX=PX/2,uS=(e,t,", "r,C,a)=>{var n=[1,1,1];WALL=cR(0,0,0,1),RECT(cR(0,0,0,1),0,0,1e3", ",1e3);var c=-1,o=1;return FPS=60,e=>(0==(c=(c+1)%25 floor(21+1.5", "*FPS))&&(o=.9+Math.random()*(1.1-.9)),((e,t,r,C,a,n)=>{if(e<floo", "r(20)+1){var c=Array.from({length:t},((e,t)=>200*t/39-100)),o=25", ",l=floor(20),i=l+e;RECT(cR(0,0,0,1),(l-1-e)*o,(l-1-e)*o,2*(e+1)*", "o,o),RECT(cR(0,0,0,1),(l-1-e)*o,(l-1-e)*o,o,2*(e+1)*o),RECT(cR(0", ",0,0,1),(l-1-e)*o,(l+e)*o,2*(e+1)*o,o),RECT(cR(0,0,0,1),(l+e)*o,", "(l-1-e)*o,o,2*(e+1)*o),WALL=cR(0,0,0,1);for(let r=l;r<=l+e;r++){", "var s=255*Math.exp(0-(c[r]/C)**2-(c[i]/C)**2),v=127.5+(-1)**floo", "r(s)*s/2;ctx.fillStyle=cR(0*(1-a[0])+v*a[0],0*(1-a[1])+v*a[1],0*", "(1-a[2])+v*a[2],1),ctx.strokeStyle=cR(0*(1-a[0])+v*a[0],0*(1-a[1", "])+v*a[1],0*(1-a[2])+v*a[2],1),CBP(),CRE(i*o,r*o,o,o),ctx.stroke", "(),ctx.fill(),CCP(),CBP(),CRE((t-i-1)*o,r*o,o,o),ctx.stroke(),ct", "x.fill(),CCP(),CBP(),CRE(i*o,(t-r-1)*o,o,o),ctx.stroke(),ctx.fil", "l(),CCP(),CBP(),CRE((t-i-1)*o,(t-r-1)*o,o,o),ctx.stroke(),ctx.fi", "ll(),CCP(),CBP(),CRE(r*o,i*o,o,o),ctx.stroke(),ctx.fill(),CCP(),", "CBP(),CRE((t-r-1)*o,i*o,o,o),ctx.stroke(),ctx.fill(),CCP(),CBP()", ",CRE(r*o,(t-i-1)*o,o,o),ctx.stroke(),ctx.fill(),CCP(),CBP(),CRE(", "(t-r-1)*o,(t-i-1)*o,o,o),ctx.stroke(),ctx.fill(),CCP()}}})(c,40,", "0,120*o,n),0)};function I(){cnv=document.getElementById('tc'),ct", "x=CTX=cnv.getContext('2d');const e=(e,r,C,a,n,c)=>{var o,l,i,s=V", "2(e,r);return t.push((e=>{l&&c(n)})),(t,n)=>{o=V2(_X,_Y).mul(-1)", ".add(s),l=o.len()<1.7*C,i=l?2:5,t&&(ELI(l||n?'white':'grey',e,r,", "C+i,C+i,0,0,TAU),CTA('center'),CFS('black'),FNT(C-3),CFT(a,e,r+6", "))}};var t=[],r=[],C=0,a=[1,2,4,8,16],n=0,c=e=>{C=e,_R=a[e],art=", "l(_R),cer=i(min(_R,4))},o={Piece:'8',Name:'Gauss Chain 008',Desc", "ription:'An on-chain generative collection playing with the|repr", "esentation of the gaussian function'.split('|'),Properties:'Squa", "res, Labyrinth, Black and White',Medium:'Fully On-Chain BlockGen", ".Art Canvas',Artist:'Muralrop - @muralrop',Seed:SEED},l=e=>{n=0;", "var t,r=DCE('canvas'),C=r.getContext('2d'),a=cM(150,1),c=()=>{DE", "F(),TXT(a,1==e?10:8,TAG,967,993)};return CWH(r,e*PX),CCX(C),AA(r", ",1),DEF(),t=uS(new RNG(SEED),C,r,e,c),c(),()=>(CCX(C),DEF(),n||(", "n=t())&&c(),CCX(),r)},i=e=>{var t=DCE('canvas');let r,C;var a,n;", "for(var[a,c]of(CWH(t,PX*e),CCX(t.getContext('2d')),DEF(null,e),R", "ECT(cH(0,2,80,.6),2,2,PX-4,PX-4),CBP(),CRT(4,4,PX-8,PX-8),CTC(),", "RECT(cH(0,2,80,1),0,0,PX,PX),CSC('black'),CSBr(30*e),CBP(),CRE(0", ",0,PX,PX),CSS(cHx('dbccb8')),CLW(102),CST(),CBP(),CRE(0,0,PX,PX)", ",CSS(cHx('9d8c78')),CLW(92),CST(),CSBr(6*e),CSS(CANV),CLW(30),CS", "T(),DEF(null,e),TXT(cM(0,.1),24,'BLOCKGEN.ART',HX,40),TXT(cM(0,.", "6),13,TAG,HX,970),r=HX,C=290,Object.entries(o)))C+=34,TXT(cM(0,.", "8),14,a,r,C),C+=24,n=cM(0,.5),Array.isArray(c)?FoE(c,(e=>{TXT(n,", "20,e,r,C),C+=22})):TXT(n,20,c,r,C);return DEF(),CCX(),e=>t},s=()", "=>{setTimeout((e=>{window.requestAnimationFrame(s);var t=0,a=PX;", "CCX(),v(.97,WALL),CSC(SHDW),CSBr(55),RECT(CANV,0,0,a,a),CSB(0),C", "VS(),_P&&(CXT(PX,0),CXS(-1,1)),CDI(art(),0,0,a,a),CVR(),_P&&CDI(", "cer(),0,0,a,a),FoE(r,(e=>{e(_P,C==t),t++}))}),1e3/FPS)},v=(e,t)=", ">{var r=window,C=r.innerWidth,a=r.innerHeight,n=C!=_W||a!=_H,c=m", "in(C,a)*e,o=c/PX,l=min(2,max(devicePixelRatio??1,1));n&&(cnv.wid", "th=_W=C*l,cnv.height=_H=a*l),CTR(1,0,0,1,0,0),BG(t),CXT((C-c)/2,", "(a-c)/2),CXS(o,o)};AA(ctx,1),(()=>{c(0);var C,n,l=a.length,i='to", "uch',v='mouse',T=e=>{e.preventDefault();var t=e.changedTouches[0", "];return e.clientX=t.pageX,e.clientY=t.pageY,e},P=e=>{var t=cnv.", "getBoundingClientRect(),r=CGT().invertSelf();n=e.clientX-t.left,", "y=e.clientY-t.top,_X=n*r.a+y*r.c+r.e,_Y=n*r.b+y*r.d+r.f};for(p=e", "=>{_M=1,P(e),(e=>{e.preventDefault(),e.stopPropagation()})(e),_P", "=_I(_X,_Y)},u=e=>{_P&&FoE(t,(e=>e())),_M=_P=0,P(e)},FoE([[i+'sta", "rt',e=>{p(T(e))}],[i+'move',e=>{P(T(e))}],[i+'end',e=>{u(T(e))}]", ",[v+'down',p],[v+'move',P],[v+'up',u]],(e=>cnv.addEventListener(", "...e))),C=0;C<l;C++)r.push(e(130,n=HX-80*l/2+80*(C+.5),22,a[C]+'", "k',C,c));r.push(e(130,800,25,CHAR(8595),0,(e=>(e=>{let t=DCE('ca", "nvas'),r=PX*_R;CWH(t,r),CCX(t.getContext('2d')),RECT(CANV,0,0,r,", "r),ctx.drawImage(art(),0,0,r,r);let C=DCE('a');C.download=o.Name", ",C.href=t.toDataURL(),C.click(),CCX()})()))),s()})()}_X=_Y=0,_R=", "1,_P=0,_M=0,_W=0,_H=0,_I=e=>1,I();</script></canvas></body></htm", "l>" ], "name": "Gauss Chain 008", "mediaType": "text/html" } ], "image": "ipfs://QmNe22KfokhFdrj7eN2H9TPiVkzwkxVNPfVWvKaLFomrry", "piece": 8, "artist": "Muralrop - @muralrop", "medium": "Fully On-Chain BlockGen.Art Canvas", "vendor": "BlockGen.art", "authNFT": "asset13lqp9wnuhs4duwpvz9faashdckwea5pm7huerw", "mediaType": "image/png", "properties": { "Theme": "Black and White", "Pixels": "Squares", "Pattern": "Labyrinth" }, "description": [ "An on-chain generative collection playing with the", "representation of the gaussian function" ] }