sincircles 003
Policy: 7e122d...375c
Owner:
Metadata:
{ "name": "sincircles 003", "seed": 28790, "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,...C", ")=>{CFS(e),FNT(t),CFT(...C)},ELI=(e,...t)=>{CFS(e),CBP(),CEL(...", "t),CFL()},ADD=e=>CGC('screen'),MUL=e=>CGC('source-over'),CWH=(e,", "t,C)=>{e.width=t,e.height=C||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 C=this,a=(e,t)=>(C.x=e||0,C.y=t||0,C);a(", "e,t),Object.assign(C,{set:a,circ:e=>a(sin(e),-cos(e)),perp:e=>a(", "C.y,-C.x),len:e=>sqrt(C.x*C.x+C.y*C.y),dot:e=>C.x*e.x+C.y*e.y,no", "rm:e=>C.div(C.len()),rad:e=>atan2(C.x,-C.y),add:e=>a(C.x+e.x,C.y", "+e.y),sub:e=>a(C.x-e.x,C.y-e.y),mv:e=>a(C.x*e.x,C.y*e.y),inc:e=>", "a(C.x+e,C.y+e),mul:e=>a(C.x*e,C.y*e),div:e=>a(C.x/e,C.y/e),cpy:e", "=>V2(C.x,C.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,C=4", "294967295,a=123456789+e&C,n=987654321-e&C,r=65535;t.r=e=>(((n=36", "969*(n&r)+(n>>>16)&C)<<16)+((a=18e3*(a&r)+(a>>>16)&C)&r)>>>0)/(C", "+1),t.f=(e,C)=>e+t.r()*(C-e),t.i=(e,C)=>floor(t.f(e,C)),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=28790,TAG='PG-05-003", "',PX=1e3,HX=PX/2,uS=(e,t,C,a,n)=>{FOR=Q('{for(v=v;v<a;v++)b(v,v/", "a)}'),WALL='black',CANV='white';var r=e.f(0,360),c=e.f(33,50),i=", "0;return e=>(i+=1/360*.27,RECT(CANV,0,0,1e3,1e3),CXT(500,500),CX", "S(2,2),FOR(0,9,((e,t)=>{CBP(),CSB(20),CSS('white'),CSB(0),CFS(cH", "(r+30*e,c,100*t,.888)),FOR(0,12,((e,C)=>{var a=.3*t+9*i,n=9*sin(", "a+TAU*C*18),r=9*sin(a+TAU*C*9),c=6*sin(a+TAU*C*54),o=3*sin(a+TAU", "*C*72),l=3*sin(a+TAU*C*3),v=V2().circ(TAU*C).mul(180+n*r*c*o*l);", "0==e?CMT(v.x,v.y):CLT(v.x,v.y)})),CCP(),CFL(),CLW(2),CST(),CSB(2", "0),CSC('white'),ELI('grey',0,0,245,245,0,0,TAU),CSB(0),ELI('whit", "e',0,0,240,240,0,0,TAU),CXT(0,20),CXR(i+TAU/10),CXR(sin(i)*TAU/1", "0),CXS(.9,.9)})),n(),0)};function I(){cnv=document.getElementByI", "d('tc'),ctx=CTX=cnv.getContext('2d');const e=(e,C,a,n,r,c)=>{var", " i,o,l,v=V2(e,C);return t.push((e=>{o&&c(r)})),(t,r)=>{i=V2(_X,_", "Y).mul(-1).add(v),o=i.len()<1.7*a,l=o?2:5,t&&(ELI(o||r?'white':'", "grey',e,C,a+l,a+l,0,0,TAU),CTA('center'),CFS('black'),FNT(a-3),C", "FT(n,e,C+6))}};var t=[],C=[],a=0,n=[1,2,4,8,16],r=0,c=e=>{a=e,_R", "=n[e],art=o(_R),cer=l(min(_R,4))},i={Piece:'3',Name:'sincircles ", "003',Description:'experimental collection of circles with sin wa", "ve radiations'.split('|'),Properties:'light, white, 9, 12, 180, ", "intense',Medium:'Fully On-Chain BlockGen.Art Canvas',Artist:'dvn", "c - @dvnc_00',Seed:SEED},o=e=>{r=0;var t,C=DCE('canvas'),a=C.get", "Context('2d'),n=cM(150,1),c=()=>{DEF(),TXT(n,1==e?10:8,TAG,967,9", "93)};return CWH(C,e*PX),CCX(a),AA(C,1),DEF(),t=uS(new RNG(SEED),", "a,C,e,c),c(),()=>(CCX(a),DEF(),r||(r=t())&&c(),CCX(),C)},l=e=>{v", "ar t=DCE('canvas');let C,a;var n,r;for(var[n,c]of(CWH(t,PX*e),CC", "X(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(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),C", "ST(),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),C=HX,a=290,", "Object.entries(i)))a+=34,TXT(cM(0,.8),14,n,C,a),a+=24,r=cM(0,.5)", ",Array.isArray(c)?FoE(c,(e=>{TXT(r,20,e,C,a),a+=22})):TXT(r,20,c", ",C,a);return DEF(),CCX(),e=>t},v=()=>{setTimeout((e=>{window.req", "uestAnimationFrame(v);var t=0,n=PX;CCX(),T(.97,WALL),CSC(SHDW),C", "SBr(55),RECT(CANV,0,0,n,n),CSB(0),CVS(),_P&&(CXT(PX,0),CXS(-1,1)", "),CDI(art(),0,0,n,n),CVR(),_P&&CDI(cer(),0,0,n,n),FoE(C,(e=>{e(_", "P,a==t),t++}))}),1e3/FPS)},T=(e,t)=>{var C=window,a=C.innerWidth", ",n=C.innerHeight,r=a!=_W||n!=_H,c=min(a,n)*e,i=c/PX,o=min(2,max(", "devicePixelRatio??1,1));r&&(cnv.width=_W=a*o,cnv.height=_H=n*o),", "CTR(1,0,0,1,0,0),BG(t),CXT((a-c)/2,(n-c)/2),CXS(i,i)};AA(ctx,1),", "(()=>{c(0);var a,r,o=n.length,l='touch',T='mouse',s=e=>{e.preven", "tDefault();var t=e.changedTouches[0];return e.clientX=t.pageX,e.", "clientY=t.pageY,e},S=e=>{var t=cnv.getBoundingClientRect(),C=CGT", "().invertSelf();r=e.clientX-t.left,y=e.clientY-t.top,_X=r*C.a+y*", "C.c+C.e,_Y=r*C.b+y*C.d+C.f};for(p=e=>{_M=1,S(e),(e=>{e.preventDe", "fault(),e.stopPropagation()})(e),_P=_I(_X,_Y)},u=e=>{_P&&FoE(t,(", "e=>e())),_M=_P=0,S(e)},FoE([[l+'start',e=>{p(s(e))}],[l+'move',e", "=>{S(s(e))}],[l+'end',e=>{u(s(e))}],[T+'down',p],[T+'move',S],[T", "+'up',u]],(e=>cnv.addEventListener(...e))),a=0;a<o;a++)C.push(e(", "130,r=HX-80*o/2+80*(a+.5),22,n[a]+'k',a,c));C.push(e(130,800,25,", "CHAR(8595),0,(e=>{return(t=DCE('a')).download=i.Name,t.href=art(", ").toDataURL(),void t.click();var t}))),v()})()}_X=_Y=0,_R=1,_P=0", ",_M=0,_W=0,_H=0,_I=e=>1,I();</script></canvas></body></html>" ], "name": "sincircles 003", "mediaType": "text/html" } ], "image": "ipfs://QmQV2GvZvVH75CAGXpbmmXytN67sdX4AziK52nYbycjqeL", "piece": 3, "artist": "dvnc - @dvnc_00", "medium": "Fully On-Chain BlockGen.Art Canvas", "vendor": "BlockGen.art", "authNFT": "asset1rr4620cy5u7pttzl223299h7wzl3zgmtftlrxk", "mediaType": "image/png", "properties": { "mode": "light", "zoom": "9", "depth": "180", "canvas": "white", "density": "12", "colourshift": "intense" }, "description": [ "experimental collection of circles with sin wave radiations" ] }