unfolding 005
Policy: 31722c...0941
Owner:
Metadata:
{ "url": "https://autrecoeur.com", "name": "unfolding 005", "seed": 8164, "Piece": 5, "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=8164,TAG='C-01-005',", "PX=1e3,HX=PX/2,uS=(e,t,r,o,n)=>{WALL='black';const a=['rgba(237,", "174,73,1)','rgba(209,73,91,1)','rgba(0,121,140,1)'],C=['normal',", "'difference','luminosity','darken'],i=a[floor(e.r()*a.length)];l", "et c=[];for(let t=12;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()})}const n", "=t%25 2==0?1:-1;c.push({r:r,arcSet:o,blendMode:C[floor(e.r()*C.l", "ength)],strokeColor:a[floor(e.r()*a.length)],fillColor:a[floor(e", ".r()*a.length)],lineWidth:floor(1e3*e.r()/10),rotationDirection:", "n,rotationAngle:0})}return e=>(CGC('normal'),RECT(i,0,0,1e3,1e3)", ",c.forEach((e=>{CGC(e.blendMode),CLW(e.lineWidth),CSS(e.strokeCo", "lor),CFS(e.fillColor),e.arcSet.forEach((t=>{if(1==e.rotationDire", "ction)var r=t.start+e.rotationAngle*e.rotationDirection,o=t.end+", "e.rotationAngle*e.rotationDirection;else r=t.start-e.rotationAng", "le*e.rotationDirection,o=t.end-e.rotationAngle*e.rotationDirecti", "on;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.rotationDire", "ction*e.arcSet[0].speed})),0)};function I(){cnv=document.getElem", "entById('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=V", "2(_X,_Y).mul(-1).add(s),c=i.len()<1.7*o,l=c?2:5,r&&(ELI(c||a?'wh", "ite':'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:'5',Name:'unfolding 005',Descr", "iption:'an exploration of shape, space and creation through conv", "ergence'.split('|'),Properties:'saman, 12',Medium:'Fully On-Chai", "n BlockGen.Art Canvas',Artist:'autre coeur',Seed:SEED};var r=[],", "o=[],n=0,a=[1,2,4,8,16],C=0,i=e=>{n=e,_R=a[e],art=c(_R),cer=l(mi", "n(_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)};return 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('c", "anvas');var a,C;for(var[a,i]of(new RNG(SEED),CWH(n,PX*e),CCX(n.g", "etContext('2d')),DEF(null,e),RECT(cH(0,2,80,.6),2,2,PX-4,PX-4),C", "BP(),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(1", "02),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,'B", "LOCKGEN.ART',HX,40),TXT(cM(0,.6),13,TAG,HX,970),r=HX,o=290,Objec", "t.entries(t)))o+=34,TXT(cM(0,.8),14,a,r,o),o+=24,C=cM(0,.5),Arra", "y.isArray(i)?FoE(i,(e=>{TXT(C,20,e,r,o),o+=22})):TXT(C,20,i,r,o)", ";return DEF(),CCX(),e=>n},s=()=>{setTimeout((e=>{window.requestA", "nimationFrame(s);var t=0,r=PX;CCX(),v(.97,WALL),CSC(SHDW),CSBr(5", "5),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.innerWidth,n=r.", "innerHeight,a=o!=_W||n!=_H,C=min(o,n)*e,i=C/PX,c=min(2,max(devic", "ePixelRatio??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.preventDefa", "ult();var t=e.changedTouches[0];return e.clientX=t.pageX,e.clien", "tY=t.pageY,e},S=e=>{var t=cnv.getBoundingClientRect(),r=CGT().in", "vertSelf();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.preventDefault", "(),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=art().toD", "ataURL(),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 005", "mediaType": "text/html" } ], "image": "ipfs://QmQ8nYVsRTJwdWvqEp7nXyzhdWk3ufPFFbbVo2SnXyPynp", "Artist": "autre coeur", "authNFT": "asset1ejfel5nlhume8nexy5rk70v0fay5kcnxu7lg6f", "copyright": "© 2023 autre coeur", "mediaType": "image/png", "Collection": "Unfolding", "Properties": { "cycles": "12", "colour scheme": "saman" }, "Description": [ "an exploration of shape, space and creation through convergence" ] }