NFT
1

 
 
Hi

unfolding 004

Policy: 31722c...0941
Owner:

    Metadata:

    • {
      • "Artist" : "autre coeur",
      • "Collection" : "Unfolding",
      • "Description" :
        [
        • "0" : "an exploration of shape, space and creation through convergence"
        ]
        ,
      • "Piece" : 4,
      • "Properties" :
        {
        • "colour scheme" : "ouboet",
        • "cycles" : "18"
        }
        ,
      • "authNFT" : "asset1ejfel5nlhume8nexy5rk70v0fay5kcnxu7lg6f",
      • "copyright" : "© 2023 autre coeur",
      • "files" :
        [
        • "0" :
          {
          • "mediaType" : "text/html",
          • "name" : "unfolding 004",
          • "src" :
            [
            • "0" : "data:text/html;utf8,
            • "1" : "idden'>
            • "2" : "st Q=s=>eval('(v,a,b,c,d)=>'+s),CHAR=e=>String.fromCharCode(e),F",
            • "3" : "or=Q('{for(v=v;v,
            • "4" : "t)=>a(v[i],i,t))'),cR=Q('`rgba(${v},${a},${b},${c})`'),cH=Q('`hs",
            • "5" : "la(${v},${a}%25 ,${b}%25 ,${c})`'),cM=Q('cR(v,v,v,a)'),cHx=e=>'r",
            • "6" : "gb('+((e=parseInt(e,16))>>16&255)+','+(e>>8&255)+','+(255&e)+')'",
            • "7" : ";let P=(v,a,b,c)=>{for(b=b.split(':'),c=0;c,
            • "8" : "C${b[c]}=${v}=>ctx.${b[c+1]}${a}`)},t='(...a)';P(t,t,'TC:clip:RT",
            • "9" : ":rect:GT:getTransform:DI:drawImage:FT:fillText:EL:ellipse:BP:beg",
            • "10" : "inPath:CP:closePath:MT:moveTo:LT:lineTo:BC:bezierCurveTo:ST:stro",
            • "11" : "ke:VS:save:VR:restore:TR:setTransform:XT:translate:XS:scale:XR:r",
            • "12" : "otate:FR:fillRect:RE:rect:FL:fill'),P('a','=a','SBr:shadowBlur:L",
            • "13" : "W:lineWidth:TA:textAlign:TB:textBaseline:SC:shadowColor:SS:strok",
            • "14" : "eStyle:GC:globalCompositeOperation:FS:fillStyle');const DEF=(e,t",
            • "15" : ")=>{e=e??CANV,t=t??_R,CTR(t,0,0,t,0,0),CFS(e),CSS(e),CTA('center",
            • "16" : "'),CSB(0),MUL()},CSB=e=>CSBr(e*_R),DCE=e=>document.createElement",
            • "17" : "(e),CCX=e=>ctx=e||CTX,FNT=e=>ctx.font=e+'px Arial',TXT=(e,t,...r",
            • "18" : ")=>{CFS(e),FNT(t),CFT(...r)},ELI=(e,...t)=>{CFS(e),CBP(),CEL(...",
            • "19" : "t),CFL()},ADD=e=>CGC('screen'),MUL=e=>CGC('source-over'),CWH=(e,",
            • "20" : "t,r)=>{e.width=t,e.height=r||t},BG=e=>RECT(e,0,0,_W,_H),RECT=(e,",
            • "21" : "...t)=>{CBP(),CFS(e),CFR(...t),CFL()},AA=(e,t)=>e.imageSmoothing",
            • "22" : "Enabled=e.mozImageSmoothingEnabled=e.webkitImageSmoothingEnabled",
            • "23" : "=t;function v2(e,t){var r=this,o=(e,t)=>(r.x=e||0,r.y=t||0,r);o(",
            • "24" : "e,t),Object.assign(r,{set:o,circ:e=>o(sin(e),-cos(e)),perp:e=>o(",
            • "25" : "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",
            • "26" : "rm:e=>r.div(r.len()),rad:e=>atan2(r.x,-r.y),add:e=>o(r.x+e.x,r.y",
            • "27" : "+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=>",
            • "28" : "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",
            • "29" : "=>V2(r.x,r.y)})}V2=Q('new v2(v,a)'),FoE(Object.getOwnPropertyNam",
            • "30" : "es(Math),(i=>eval(`${i}=Math.${i}`)));const Lerp=Q('(1-v)*a+v*b'",
            • "31" : "),Wrap=Q('v,
            • "32" : "?c:c+(((v-a)/(b-a))*(d-c))'),Clamp=Q('v-",
            • "33" : "(cos(PI*e)-1)/2,TAU=2*PI;class RNG{constructor(e){var t=this,r=4",
            • "34" : "294967295,o=123456789+e&r,n=987654321-e&r,a=65535;t.r=e=>(((n=36",
            • "35" : "969*(n&a)+(n>>>16)&r)<<16)+((o=18e3*(o&a)+(o>>>16)&r)&a)>>>0)/(r",
            • "36" : "+1),t.f=(e,r)=>e+t.r()*(r-e),t.i=(e,r)=>floor(t.f(e,r)),t.c=e=>t",
            • "37" : ".r()e[t.i(0,e.length)]}}CANV=cM(220,1),WALL=cHx('f5",
            • "38" : "7411'),SHDW=cHx('0f0a06'),FPS=60;const SEED=9745,TAG='C-01-004',",
            • "39" : "PX=1e3,HX=PX/2,uS=(e,t,r,o,n)=>{WALL='black';const a=['rgba(35,6",
            • "40" : "1,77,1)','rgba(254,127,45,1)','rgba(252,202,70,1)'],C=['normal',",
            • "41" : "'difference','luminosity','darken'],i=a[floor(e.r()*a.length)];l",
            • "42" : "et c=[];for(let t=6;t<24;t++){const r=1e3/(floor(10*e.r())+2)*.8",
            • "43" : "8,o=[];for(let t=0;t<4;t++){const r=t*(PI/2)+e.r()*PI/4-PI/8,n=r",
            • "44" : "+1.1*e.r()+.06;o.push({start:r,end:n,speed:.005*e.r()})}const n=",
            • "45" : "t%25 2==0?1:-1;c.push({r:r,arcSet:o,blendMode:C[floor(e.r()*C.le",
            • "46" : "ngth)],strokeColor:a[floor(e.r()*a.length)],fillColor:a[floor(e.",
            • "47" : "r()*a.length)],lineWidth:floor(1e3*e.r()/10),rotationDirection:n",
            • "48" : ",rotationAngle:0})}return e=>(CGC('normal'),RECT(i,0,0,1e3,1e3),",
            • "49" : "c.forEach((e=>{CGC(e.blendMode),CLW(e.lineWidth),CSS(e.strokeCol",
            • "50" : "or),CFS(e.fillColor),e.arcSet.forEach((t=>{if(1==e.rotationDirec",
            • "51" : "tion)var r=t.start+e.rotationAngle*e.rotationDirection,o=t.end+e",
            • "52" : ".rotationAngle*e.rotationDirection;else r=t.start-e.rotationAngl",
            • "53" : "e*e.rotationDirection,o=t.end-e.rotationAngle*e.rotationDirectio",
            • "54" : "n;CBP(),CEL(500,500,e.r,e.r,0,r,o),CST(),CBP(),CMT(500,500),CEL(",
            • "55" : "500,500,e.r,e.r,0,r,o),CFL()})),e.rotationAngle+=e.rotationDirec",
            • "56" : "tion*e.arcSet[0].speed})),0)};function I(){cnv=document.getEleme",
            • "57" : "ntById('tc'),ctx=CTX=cnv.getContext('2d');const e=(e,t,o,n,a,C)=",
            • "58" : ">{var i,c,l,s=V2(e,t);return r.push((e=>{c&&C(a)})),(r,a)=>{i=V2",
            • "59" : "(_X,_Y).mul(-1).add(s),c=i.len()<1.7*o,l=c?2:5,r&&(ELI(c||a?'whi",
            • "60" : "te':'grey',e,t,o+l,o+l,0,0,TAU),CTA('center'),CFS('black'),FNT(o",
            • "61" : "-3),CFT(n,e,t+6))}};let t={Piece:'4',Name:'unfolding 004',Descri",
            • "62" : "ption:'an exploration of shape, space and creation through conve",
            • "63" : "rgence'.split('|'),Properties:'ouboet, 18',Medium:'Fully On-Chai",
            • "64" : "n BlockGen.Art Canvas',Artist:'autre coeur',Seed:SEED};var r=[],",
            • "65" : "o=[],n=0,a=[1,2,4,8,16],C=0,i=e=>{n=e,_R=a[e],art=c(_R),cer=l(mi",
            • "66" : "n(_R,4))},c=e=>{C=0;var t,r=DCE('canvas'),o=r.getContext('2d'),n",
            • "67" : "=cM(150,1),a=()=>{DEF(),TXT(n,1==e?10:8,TAG,967,993)};return CWH",
            • "68" : "(r,e*PX),CCX(o),AA(r,1),DEF(),t=uS(new RNG(SEED),o,r,e,a),a(),()",
            • "69" : "=>(CCX(o),DEF(),C||(C=t())&&a(),CCX(),r)},l=e=>{let r,o,n=DCE('c",
            • "70" : "anvas');var a,C;for(var[a,i]of(new RNG(SEED),CWH(n,PX*e),CCX(n.g",
            • "71" : "etContext('2d')),DEF(null,e),RECT(cH(0,2,80,.6),2,2,PX-4,PX-4),C",
            • "72" : "BP(),CRT(4,4,PX-8,PX-8),CTC(),RECT(cH(0,2,80,1),0,0,PX,PX),CSC('",
            • "73" : "black'),CSBr(30*e),CBP(),CRE(0,0,PX,PX),CSS(cHx('dbccb8')),CLW(1",
            • "74" : "02),CST(),CBP(),CRE(0,0,PX,PX),CSS(cHx('9d8c78')),CLW(92),CST(),",
            • "75" : "CSBr(6*e),CSS(CANV),CLW(30),CST(),DEF(null,e),TXT(cM(0,.1),24,'B",
            • "76" : "LOCKGEN.ART',HX,40),TXT(cM(0,.6),13,TAG,HX,970),r=HX,o=290,Objec",
            • "77" : "t.entries(t)))o+=34,TXT(cM(0,.8),14,a,r,o),o+=24,C=cM(0,.5),Arra",
            • "78" : "y.isArray(i)?FoE(i,(e=>{TXT(C,20,e,r,o),o+=22})):TXT(C,20,i,r,o)",
            • "79" : ";return DEF(),CCX(),e=>n},s=()=>{setTimeout((e=>{window.requestA",
            • "80" : "nimationFrame(s);var t=0,r=PX;CCX(),v(.97,WALL),CSC(SHDW),CSBr(5",
            • "81" : "5),RECT(CANV,0,0,r,r),CSB(0),CVS(),_P&&(CXT(PX,0),CXS(-1,1)),CDI",
            • "82" : "(art(),0,0,r,r),CVR(),_P&&CDI(cer(),0,0,r,r),FoE(o,(e=>{e(_P,n==",
            • "83" : "t),t++}))}),1e3/FPS)},v=(e,t)=>{var r=window,o=r.innerWidth,n=r.",
            • "84" : "innerHeight,a=o!=_W||n!=_H,C=min(o,n)*e,i=C/PX,c=min(2,max(devic",
            • "85" : "ePixelRatio??1,1));a&&(cnv.width=_W=o*c,cnv.height=_H=n*c),CTR(1",
            • "86" : ",0,0,1,0,0),BG(t),CXT((o-C)/2,(n-C)/2),CXS(i,i)};AA(ctx,1),(()=>",
            • "87" : "{i(0);var n,C,c=a.length,l='touch',v='mouse',T=e=>{e.preventDefa",
            • "88" : "ult();var t=e.changedTouches[0];return e.clientX=t.pageX,e.clien",
            • "89" : "tY=t.pageY,e},S=e=>{var t=cnv.getBoundingClientRect(),r=CGT().in",
            • "90" : "vertSelf();C=e.clientX-t.left,y=e.clientY-t.top,_X=C*r.a+y*r.c+r",
            • "91" : ".e,_Y=C*r.b+y*r.d+r.f};for(p=e=>{_M=1,S(e),(e=>{e.preventDefault",
            • "92" : "(),e.stopPropagation()})(e),_P=_I(_X,_Y)},u=e=>{_P&&FoE(r,(e=>e(",
            • "93" : "))),_M=_P=0,S(e)},FoE([[l+'start',e=>{p(T(e))}],[l+'move',e=>{S(",
            • "94" : "T(e))}],[l+'end',e=>{u(T(e))}],[v+'down',p],[v+'move',S],[v+'up'",
            • "95" : ",u]],(e=>cnv.addEventListener(...e))),n=0;n,
            • "96" : "=HX-80*c/2+80*(n+.5),22,a[n]+'k',n,i));o.push(e(130,800,25,CHAR(",
            • "97" : "8595),0,(e=>{return(r=DCE('a')).download=t.Name,r.href=art().toD",
            • "98" : "ataURL(),void r.click();var r}))),s()})()}_X=_Y=0,_R=1,_P=0,_M=0",
            • "99" : ",_W=0,_H=0,_I=e=>1,I();"
            ]
          }
        ]
        ,
      • "image" : "ipfs://QmcgFA6DHYotFURrRZPRvf2XJJ7TyBAm8UqTRrmWT3L9Tm",
      • "mediaType" : "image/png",
      • "name" : "unfolding 004",
      • "seed" : 9745,
      • "url" : "https://autrecoeur.com"
      }
    ...cl1ck