Gauss Chain 005
Policy: ac8320...ada4
Owner:
Metadata:
{ "name": "Gauss Chain 005", "seed": 6150, "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=6150,TAG='PG-09-005',PX=1e3,HX=PX/2,uS=(e,t,", "r,C,a)=>{var n=[0,1,0],c=228,o=162,l=165;WALL=cR(c,o,l,1),RECT(c", "R(c,o,l,1),0,0,1e3,1e3);var i=-1,s=1;return FPS=60,e=>(0==(i=(i+", "1)%25 floor(31+1.5*FPS))&&(s=.9+Math.random()*(1.1-.9)),((e,t,r,", "C,a,n)=>{if(e<floor(30)+1){var i=Array.from({length:t},((e,t)=>2", "00*t/59-100)),s=1e3/t,v=floor(30),T=v+e;RECT(cR(c,o,l,1),(v-1-e)", "*s,(v-1-e)*s,2*(e+1)*s,s),RECT(cR(c,o,l,1),(v-1-e)*s,(v-1-e)*s,s", ",2*(e+1)*s),RECT(cR(c,o,l,1),(v-1-e)*s,(v+e)*s,2*(e+1)*s,s),RECT", "(cR(c,o,l,1),(v+e)*s,(v-1-e)*s,s,2*(e+1)*s),WALL=cR(c,o,l,1);for", "(let r=v;r<=v+e;r++){var P=200*Math.exp(0-(i[r]/C)**2-(i[T]/C)**", "2),E=127.5+(-1)**floor(P)*P/2;ctx.fillStyle=cR(c*(1-a[0])+E*a[0]", ",o*(1-a[1])+E*a[1],l*(1-a[2])+E*a[2],1),ctx.strokeStyle=cR(c*(1-", "a[0])+E*a[0],o*(1-a[1])+E*a[1],l*(1-a[2])+E*a[2],1),CBP(),CEL(T*", "s+s/2,r*s+s/2,s/2.1,s/2.1,6.283,0,6.283),ctx.stroke(),ctx.fill()", ",CCP(),CBP(),CEL((t-T-1)*s+s/2,r*s+s/2,s/2.1,s/2.1,6.283,0,6.283", "),ctx.stroke(),ctx.fill(),CCP(),CBP(),CEL(T*s+s/2,(t-r-1)*s+s/2,", "s/2.1,s/2.1,6.283,0,6.283),ctx.stroke(),ctx.fill(),CCP(),CBP(),C", "EL((t-T-1)*s+s/2,(t-r-1)*s+s/2,s/2.1,s/2.1,6.283,0,6.283),ctx.st", "roke(),ctx.fill(),CCP(),CBP(),CEL(r*s+s/2,T*s+s/2,s/2.1,s/2.1,6.", "283,0,6.283),ctx.stroke(),ctx.fill(),CCP(),CBP(),CEL((t-r-1)*s+s", "/2,T*s+s/2,s/2.1,s/2.1,6.283,0,6.283),ctx.stroke(),ctx.fill(),CC", "P(),CBP(),CEL(r*s+s/2,(t-T-1)*s+s/2,s/2.1,s/2.1,6.283,0,6.283),c", "tx.stroke(),ctx.fill(),CCP(),CBP(),CEL((t-r-1)*s+s/2,(t-T-1)*s+s", "/2,s/2.1,s/2.1,6.283,0,6.283),ctx.stroke(),ctx.fill(),CCP()}}})(", "i,60,0,180*s,n),0)};function I(){cnv=document.getElementById('tc", "'),ctx=CTX=cnv.getContext('2d');const e=(e,r,C,a,n,c)=>{var o,l,", "i,s=V2(e,r);return t.push((e=>{l&&c(n)})),(t,n)=>{o=V2(_X,_Y).mu", "l(-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:'5',Name:'Gauss Chain 005'", ",Description:'An on-chain generative collection playing with the", "|representation of the gaussian function'.split('|'),Properties:", "'Circles, Butterfly, Pink',Medium:'Fully On-Chain BlockGen.Art C", "anvas',Artist:'Muralrop - @muralrop',Seed:SEED},l=e=>{n=0;var t,", "r=DCE('canvas'),C=r.getContext('2d'),a=cM(150,1),c=()=>{DEF(),TX", "T(a,1==e?10:8,TAG,967,993)};return CWH(r,e*PX),CCX(C),AA(r,1),DE", "F(),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(va", "r[a,c]of(CWH(t,PX*e),CCX(t.getContext('2d')),DEF(null,e),RECT(cH", "(0,2,80,.6),2,2,PX-4,PX-4),CBP(),CRT(4,4,PX-8,PX-8),CTC(),RECT(c", "H(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(c", "Hx('9d8c78')),CLW(92),CST(),CSBr(6*e),CSS(CANV),CLW(30),CST(),DE", "F(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=()=>{set", "Timeout((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),CVS(),_", "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=min(C,a", ")*e,o=c/PX,l=min(2,max(devicePixelRatio??1,1));n&&(cnv.width=_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='touch',v", "='mouse',T=e=>{e.preventDefault();var t=e.changedTouches[0];retu", "rn e.clientX=t.pageX,e.clientY=t.pageY,e},P=e=>{var t=cnv.getBou", "ndingClientRect(),r=CGT().invertSelf();n=e.clientX-t.left,y=e.cl", "ientY-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+'start',e=", ">{p(T(e))}],[i+'move',e=>{P(T(e))}],[i+'end',e=>{u(T(e))}],[v+'d", "own',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('canvas')", ",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.hre", "f=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></html>" ], "name": "Gauss Chain 005", "mediaType": "text/html" } ], "image": "ipfs://QmUgBqQW2iqvkjxSX18hNnE7QRKkeTcjkXTZMhqFgMTdoJ", "piece": 5, "artist": "Muralrop - @muralrop", "medium": "Fully On-Chain BlockGen.Art Canvas", "vendor": "BlockGen.art", "authNFT": "asset13lqp9wnuhs4duwpvz9faashdckwea5pm7huerw", "mediaType": "image/png", "properties": { "Theme": "Pink", "Pixels": "Circles", "Pattern": "Butterfly" }, "description": [ "An on-chain generative collection playing with the", "representation of the gaussian function" ] }