Gauss Chain 003
Policy: ac8320...ada4
Owner:
Metadata:
{ "name": "Gauss Chain 003", "seed": 7498, "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=7498,TAG='PG-09-003',PX=1e3,HX=PX/2,uS=(e,t,", "r,C,a)=>{var n=[0,1,0],c=198,o=123,l=68;WALL=cR(c,o,l,1),RECT(cR", "(c,o,l,1),0,0,1e3,1e3);var i=-1,s=1;return FPS=60,e=>(0==(i=(i+1", ")%25 floor(21+1.5*FPS))&&(s=.9+Math.random()*(1.1-.9)),((e,t,r,C", ",a,n)=>{if(e<floor(20)+1){var i=Array.from({length:t},((e,t)=>20", "0*t/39-100)),s=25,v=floor(20),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=255*Math.exp(0-(i[r]/C)**2-(i[T]/C)**2),R", "=127.5+(-1)**floor(P)*P/2;ctx.fillStyle=cR(c*(1-a[0])+R*a[0],o*(", "1-a[1])+R*a[1],l*(1-a[2])+R*a[2],1),ctx.strokeStyle=cR(c*(1-a[0]", ")+R*a[0],o*(1-a[1])+R*a[1],l*(1-a[2])+R*a[2],1),CBP(),CRE(T*s,r*", "s,s,s),ctx.stroke(),ctx.fill(),CCP(),CBP(),CRE((t-T-1)*s,r*s,s,s", "),ctx.stroke(),ctx.fill(),CCP(),CBP(),CRE(T*s,(t-r-1)*s,s,s),ctx", ".stroke(),ctx.fill(),CCP(),CBP(),CRE((t-T-1)*s,(t-r-1)*s,s,s),ct", "x.stroke(),ctx.fill(),CCP(),CBP(),CRE(r*s,T*s,s,s),ctx.stroke(),", "ctx.fill(),CCP(),CBP(),CRE((t-r-1)*s,T*s,s,s),ctx.stroke(),ctx.f", "ill(),CCP(),CBP(),CRE(r*s,(t-T-1)*s,s,s),ctx.stroke(),ctx.fill()", ",CCP(),CBP(),CRE((t-r-1)*s,(t-T-1)*s,s,s),ctx.stroke(),ctx.fill(", "),CCP()}}})(i,40,0,80*s,n),0)};function I(){cnv=document.getElem", "entById('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=V", "2(_X,_Y).mul(-1).add(s),l=o.len()<1.7*C,i=l?2:5,t&&(ELI(l||n?'wh", "ite':'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:'3',Name:'Gauss", " Chain 003',Description:'An on-chain generative collection playi", "ng with the|representation of the gaussian function'.split('|'),", "Properties:'Squares, Laser Beam, Sunset',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", "=()=>{DEF(),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),DE", "F(),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(n", "ull,e),RECT(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),CL", "W(30),CST(),DEF(null,e),TXT(cM(0,.1),24,'BLOCKGEN.ART',HX,40),TX", "T(cM(0,.6),13,TAG,HX,970),r=HX,C=290,Object.entries(o)))C+=34,TX", "T(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),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.leng", "th,i='touch',v='mouse',T=e=>{e.preventDefault();var t=e.changedT", "ouches[0];return e.clientX=t.pageX,e.clientY=t.pageY,e},P=e=>{va", "r 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+'start',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.addEventL", "istener(...e))),C=0;C<l;C++)r.push(e(130,n=HX-80*l/2+80*(C+.5),2", "2,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(CAN", "V,0,0,r,r),ctx.drawImage(art(),0,0,r,r);let C=DCE('a');C.downloa", "d=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></bo", "dy></html>" ], "name": "Gauss Chain 003", "mediaType": "text/html" } ], "image": "ipfs://QmU93tJzr4ujfRF1u3kfn5qNox63DEDcLMRoxdQVgQb2Te", "piece": 3, "artist": "Muralrop - @muralrop", "medium": "Fully On-Chain BlockGen.Art Canvas", "vendor": "BlockGen.art", "authNFT": "asset13lqp9wnuhs4duwpvz9faashdckwea5pm7huerw", "mediaType": "image/png", "properties": { "Theme": "Sunset", "Pixels": "Squares", "Pattern": "Laser Beam" }, "description": [ "An on-chain generative collection playing with the", "representation of the gaussian function" ] }