NFT
1

 
 
Hi

unfolding 010

Policy: 31722c...0941
Owner:

    Metadata:

    {
      "url": "https://autrecoeur.com",
      "name": "unfolding 010",
      "seed": 5041,
      "Piece": 10,
      "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,o=(e,t)=>(r.x=e||0,r.y=t||0,r);o(",
            "e,t),Object.assign(r,{set:o,circ:e=>o(sin(e),-cos(e)),perp:e=>o(",
            "r.y,-r.x),len:e=>sqrt(r.x*r.x+r.y*r.y),dot:e=>r.x*e.x+r.y*e.y,no",
            "rm:e=>r.div(r.len()),rad:e=>atan2(r.x,-r.y),add:e=>o(r.x+e.x,r.y",
            "+e.y),sub:e=>o(r.x-e.x,r.y-e.y),mv:e=>o(r.x*e.x,r.y*e.y),inc:e=>",
            "o(r.x+e,r.y+e),mul:e=>o(r.x*e,r.y*e),div:e=>o(r.x/e,r.y/e),cpy:e",
            "=>V2(r.x,r.y)})}V2=Q('new v2(v,a)'),FoE(Object.getOwnPropertyNam",
            "es(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=4",
            "294967295,o=123456789+e&r,n=987654321-e&r,a=65535;t.r=e=>(((n=36",
            "969*(n&a)+(n>>>16)&r)<<16)+((o=18e3*(o&a)+(o>>>16)&r)&a)>>>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('f5",
            "7411'),SHDW=cHx('0f0a06'),FPS=60;const SEED=5041,TAG='C-01-010',",
            "PX=1e3,HX=PX/2,uS=(e,t,r,o,n)=>{WALL='black';var a=['rgba(84,13,",
            "110,1)','rgba(238,66,102,1)','rgba(255,210,63,1)'];const C=['nor",
            "mal','difference','luminosity','darken'],i=a[floor(e.r()*a.lengt",
            "h)];let c=[];for(let t=1;t<24;t++){const r=1e3/(floor(10*e.r())+",
            "2)*.88,o=[];for(let t=0;t<4;t++){const r=t*(PI/2)+e.r()*PI/4-PI/",
            "8,n=r+1.1*e.r()+.06;o.push({start:r,end:n,speed:.005*e.r()})}con",
            "st n=t%25 2==0?1:-1;c.push({r:r,arcSet:o,blendMode:C[floor(e.r()",
            "*C.length)],strokeColor:a[floor(e.r()*a.length)],fillColor:a[flo",
            "or(e.r()*a.length)],lineWidth:floor(1e3*e.r()/10),rotationDirect",
            "ion:n,rotationAngle:0})}return e=>(CGC('normal'),RECT(i,0,0,1e3,",
            "1e3),c.forEach((e=>{CGC(e.blendMode),CLW(e.lineWidth),CSS(e.stro",
            "keColor),CFS(e.fillColor),e.arcSet.forEach((t=>{if(1==e.rotation",
            "Direction)var r=t.start+e.rotationAngle*e.rotationDirection,o=t.",
            "end+e.rotationAngle*e.rotationDirection;else r=t.start-e.rotatio",
            "nAngle*e.rotationDirection,o=t.end-e.rotationAngle*e.rotationDir",
            "ection;CBP(),CEL(500,500,e.r,e.r,0,r,o),CST(),CBP(),CMT(500,500)",
            ",CEL(500,500,e.r,e.r,0,r,o),CFL()})),e.rotationAngle+=e.rotation",
            "Direction*e.arcSet[0].speed})),0)};function I(){cnv=document.get",
            "ElementById('tc'),ctx=CTX=cnv.getContext('2d');const e=(e,t,o,n,",
            "a,C)=>{var i,c,l,s=V2(e,t);return r.push((e=>{c&&C(a)})),(r,a)=>",
            "{i=V2(_X,_Y).mul(-1).add(s),c=i.len()<1.7*o,l=c?2:5,r&&(ELI(c||a",
            "?'white':'grey',e,t,o+l,o+l,0,0,TAU),CTA('center'),CFS('black'),",
            "FNT(o-3),CFT(n,e,t+6))}};let t={Piece:'10',Name:'unfolding 010',",
            "Description:'an exploration of shape, space and creation through",
            " convergence'.split('|'),Properties:'peignoir, 23',Medium:'Fully",
            " On-Chain BlockGen.Art Canvas',Artist:'autre coeur',Seed:SEED};v",
            "ar r=[],o=[],n=0,a=[1,2,4,8,16],C=0,i=e=>{n=e,_R=a[e],art=c(_R),",
            "cer=l(min(_R,4))},c=e=>{C=0;var t,r=DCE('canvas'),o=r.getContext",
            "('2d'),n=cM(150,1),a=()=>{DEF(),TXT(n,1==e?10:8,TAG,967,993)};re",
            "turn CWH(r,e*PX),CCX(o),AA(r,1),DEF(),t=uS(new RNG(SEED),o,r,e,a",
            "),a(),()=>(CCX(o),DEF(),C||(C=t())&&a(),CCX(),r)},l=e=>{let r,o,",
            "n=DCE('canvas');var a,C;for(var[a,i]of(new RNG(SEED),CWH(n,PX*e)",
            ",CCX(n.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(cH(0,2,80,1),0,0,PX,P",
            "X),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),CST(),DEF(null,e),TXT(cM(0,.",
            "1),24,'BLOCKGEN.ART',HX,40),TXT(cM(0,.6),13,TAG,HX,970),r=HX,o=2",
            "90,Object.entries(t)))o+=34,TXT(cM(0,.8),14,a,r,o),o+=24,C=cM(0,",
            ".5),Array.isArray(i)?FoE(i,(e=>{TXT(C,20,e,r,o),o+=22})):TXT(C,2",
            "0,i,r,o);return DEF(),CCX(),e=>n},s=()=>{setTimeout((e=>{window.",
            "requestAnimationFrame(s);var t=0,r=PX;CCX(),v(.97,WALL),CSC(SHDW",
            "),CSBr(55),RECT(CANV,0,0,r,r),CSB(0),CVS(),_P&&(CXT(PX,0),CXS(-1",
            ",1)),CDI(art(),0,0,r,r),CVR(),_P&&CDI(cer(),0,0,r,r),FoE(o,(e=>{",
            "e(_P,n==t),t++}))}),1e3/FPS)},v=(e,t)=>{var r=window,o=r.innerWi",
            "dth,n=r.innerHeight,a=o!=_W||n!=_H,C=min(o,n)*e,i=C/PX,c=min(2,m",
            "ax(devicePixelRatio??1,1));a&&(cnv.width=_W=o*c,cnv.height=_H=n*",
            "c),CTR(1,0,0,1,0,0),BG(t),CXT((o-C)/2,(n-C)/2),CXS(i,i)};AA(ctx,",
            "1),(()=>{i(0);var n,C,c=a.length,l='touch',v='mouse',T=e=>{e.pre",
            "ventDefault();var t=e.changedTouches[0];return e.clientX=t.pageX",
            ",e.clientY=t.pageY,e},S=e=>{var t=cnv.getBoundingClientRect(),r=",
            "CGT().invertSelf();C=e.clientX-t.left,y=e.clientY-t.top,_X=C*r.a",
            "+y*r.c+r.e,_Y=C*r.b+y*r.d+r.f};for(p=e=>{_M=1,S(e),(e=>{e.preven",
            "tDefault(),e.stopPropagation()})(e),_P=_I(_X,_Y)},u=e=>{_P&&FoE(",
            "r,(e=>e())),_M=_P=0,S(e)},FoE([[l+'start',e=>{p(T(e))}],[l+'move",
            "',e=>{S(T(e))}],[l+'end',e=>{u(T(e))}],[v+'down',p],[v+'move',S]",
            ",[v+'up',u]],(e=>cnv.addEventListener(...e))),n=0;n<c;n++)o.push",
            "(e(130,C=HX-80*c/2+80*(n+.5),22,a[n]+'k',n,i));o.push(e(130,800,",
            "25,CHAR(8595),0,(e=>{return(r=DCE('a')).download=t.Name,r.href=a",
            "rt().toDataURL(),void r.click();var r}))),s()})()}_X=_Y=0,_R=1,_",
            "P=0,_M=0,_W=0,_H=0,_I=e=>1,I();</script></canvas></body></html>"
          ],
          "name": "unfolding 010",
          "mediaType": "text/html"
        }
      ],
      "image": "ipfs://QmaonzTBt1PTee66r4A2xq9b7KNaoE66akv9fxWECLELzE",
      "Artist": "autre coeur",
      "authNFT": "asset1ejfel5nlhume8nexy5rk70v0fay5kcnxu7lg6f",
      "copyright": "© 2023 autre coeur",
      "mediaType": "image/png",
      "Collection": "Unfolding",
      "Properties": {
        "cycles": "23",
        "colour scheme": "peignoir"
      },
      "Description": [
        "an exploration of shape, space and creation through convergence"
      ]
    }
    ...cl1ck