0x5079…cd43

All memos sent from and to 0x5079…cd43.

Stroomlijn holds a special place for me. While focused on creating a plottable project, I neglected my creative enjoyment. As a result, I ended up with many unfinished projects that were okay but didn't feel like something I could proudly call my own. Everything clicked when I released those limitations and pursued something I truly enjoyed, only transforming it into a plottable work after the visuals were how I wanted them to be. My studio is cluttered with various test plots and different directions I initially had for this project. I took a lot of inspiration from artists like Mario Nigro and Peter Struycken, who use bold rectangular patterns in their work. I studied their art and learned how to create dark and thick shapes using just lines. Once I mastered that technique, I incorporated it into my own personal style, with Stroomlijn being the final result. For this project, it's best to use Pigma Micron 05 fineliners when plotting. If you're plotting a white on black design, go for a white Sakura Gelly Roll 08 pen. When it comes to paper, choose Bristol Smooth for white background plots. Use Fabriano Black Black for black background plots. For the other options use smooth thick (160g+) paper in light grey or cream (Mi-Teintes for example). To reduce the chance of mistakes, set your plotter settings to a slow speed. If you wish to experiment with a thinner pen, you can add ‘?density=$“ to the URL of the live view. Replace ‘$’ with 2 or 3 to increase the amount of lines that are drawn. 1 is the default value. You can also use decimal numbers but those can result in different patterns. Press spacebar to download the new SVG file.
let t,e,o,n,l,s={};const i=(i=!1,r=!1,h=!1)=>{let c=window.innerWidth/window.innerHeight,a=h||1;s.b=1e3,s.h=window.innerHeight,s.r=a,c>a?s.w=a*s.h:(s.w=window.innerWidth,s.h=s.w/a),i&&(s.w=i),r&&(s.h=r),s.s=Math.min(s.w,s.h),s.m=s.s/s.b,[t,e,o,n,l]=[s.w,s.h,s.m,.1*s.w,s.b]},r=(t,e,o,n,l)=>n+(t-e)/(o-e)*(l-n),h=(t,e,o)=>{let{size:n,name:l,download:s,hideCanvas:i,removeSVG:r}=e||{},h=document.querySelector(".stroomlijn-svg");h&&h.remove();let a=2970,y=4200,u="http://www.w3.org/2000/svg",p=document.createElementNS(u,"svg");console.log("Generating SVG using backgroundColor: "+o),e.download||tokenData.plot?(p.setAttribute("width","29.7cm"),p.setAttribute("height","42cm")):(p.setAttribute("width","100vw"),p.setAttribute("height","100vh")),p.setAttribute("viewBox","0 0 2970 4200"),p.setAttribute("style",`background: ${o};`),p.setAttribute("xml:space","preserve"),p.setAttribute("xmlns:inkscape","http://www.inkscape.org/namespaces/inkscape"),p.setAttribute("xmlns","http://www.w3.org/2000/svg"),p.setAttribute("class","stroomlijn-svg"),t.forEach((t,o)=>{const n=t.path;if(n.length>0){const o=p.getElementById(""+t.colName);let l;if(null===o){l=document.createElementNS(u,"g"),l.setAttribute("id",""+t.colName),l.setAttribute("inkscape:groupmode","layer");const e=p.querySelectorAll("g").length+1;l.setAttribute("inkscape:label",`${e} - ${t.colName}`)}else l=o;let s=document.createElementNS(u,"path");s.setAttribute("d",`M ${n[0].x*a} ${n[0].y*y}`),s.setAttribute("stroke",t.col),s.setAttribute("stroke-width","5"),s.setAttribute("stroke-linejoin","bevel"),"outline"===t.type||"outline-hatch"===t.type||e.hideFill?s.setAttribute("fill","none"):s.setAttribute("fill",t.col),n.forEach(t=>{let e=s.getAttribute("d");s.setAttribute("d",`${e} L ${t.x*a} ${t.y*y} `)}),l.appendChild(s),p.appendChild(l)}}),document.body.appendChild(p),s&&c(p,l)},c=(t,e)=>{const o=(new XMLSerializer).serializeToString(t),n=document.createElement("a");n.setAttribute("download",tokenData.tokenId+".svg"),n.style.display="none",document.body.appendChild(n),n.setAttribute("href",window.URL.createObjectURL(new Blob([o],{type:"text/plain;charset=utf-8"}))),document.body.removeChild(n),n.click()},a=(o,n)=>({x:r(o,0,t,0,1),y:r(n,0,e,0,1)}),y=Uint32Array.from([0,0,0,0].map((t,e)=>parseInt(tokenData.hash.substr(8*e+2,8),16))),u=()=>{let t,e=y[3];return y[3]=y[2],y[2]=y[1],y[1]=t=y[0],e^=e<<11,e^=e>>>8,y[0]=e^t^t>>>19,y[0]/4294967296},p=(t,e)=>t+(e-t)*u(),x=t=>t[Math.floor(u()*t.length)];let d=function(t){this.p=[...Array(256)].map(e=>f(256*t())),this.pm=[...this.p,...this.p]};const{floor:f,sqrt:g}=Math,w=(t,e,o)=>t[0]*e+t[1]*o,b=[[1,1,0],[-1,1,0],[1,-1,0],[-1,-1,0],[1,0,1],[-1,0,1],[1,0,-1],[-1,0,-1],[0,1,1],[0,-1,1],[0,1,-1],[0,-1,-1]];d.prototype.noise=function(t,e){const o=this.pm;let n,l,s,i,r,h=(t+e)*(.5*(g(3)-1)),c=f(t+h),a=f(e+h),y=(3-g(3))/6,u=(c+a)*y,p=t-(c-u),x=e-(a-u);p>x?(i=1,r=0):(i=0,r=1);let d=p-i+y,m=x-r+y,F=p-1+2*y,M=x-1+2*y,A=255&c,v=255&a,k=o[A+o[v]]%12,S=o[A+i+o[v+r]]%12,E=o[A+1+o[v+1]]%12,N=.5-p*p-x*x;N<0?n=0:(N*=N,n=N*N*w(b[k],p,x));let B=.5-d*d-m*m;B<0?l=0:(B*=B,l=B*B*w(b[S],d,m));let C=.5-F*F-M*M;return C<0?s=0:(C*=C,s=C*C*w(b[E],F,M)),70*(n+l+s)};const m=(t,e)=>{const o=e.x-t.x,n=e.y-t.y;return Math.atan2(n,o)*(180/Math.PI)},F=t=>{let e=0,o=0;for(let n=0;n<t.length;n++)e+=t[n].x,o+=t[n].y;return e/=t.length,o/=t.length,[e,o]},M=t=>{const e=[];for(let o=0;o<t.length;o++){let n=t[o],l=o===t.length-1?0:o+1,s=t[l];const i=Math.round(m(n,s));[-270,-180,-90,0,90,180,270].includes(i)&&e.push([o,l])}return e},A=(t,e)=>t.filter(t=>E(t,e)),v=(t,e)=>{const o=[];for(let n=0;n<t.length-1;n++){const l=[t[n],t[n+1]];for(let t=0;t<e.length-1;t++){const n=[e[t],e[t+1]];if(S(l,n)){const{x:t,y:e}=k(l,n);o.push({x:t,y:e})}}}return o},k=([t,e],[o,n])=>{const l=(t.x-e.x)*(o.y-n.y)-(t.y-e.y)*(o.x-n.x);return{x:((t.x*e.y-t.y*e.x)*(o.x-n.x)-(t.x-e.x)*(o.x*n.y-o.y*n.x))/l,y:((t.x*e.y-t.y*e.x)*(o.y-n.y)-(t.y-e.y)*(o.x*n.y-o.y*n.x))/l}},S=([t,e],[o,n])=>{const l=(e.x-t.x)*(n.y-o.y)-(n.x-o.x)*(e.y-t.y);if(0===l)return!1;const s=((n.y-o.y)*(n.x-t.x)+(o.x-n.x)*(n.y-t.y))/l,i=((t.y-e.y)*(n.x-t.x)+(e.x-t.x)*(n.y-t.y))/l;return 0<s&&s<1&&0<i&&i<1},E=(t,e)=>{let o=!1,n=t.x,l=t.y;for(let t=0,s=e.length-1;t<e.length;s=t++){let[i,r]=[e[t].x,e[t].y],[h,c]=[e[s].x,e[s].y];r>l!=c>l&&n<(h-i)*(l-r)/(c-r)+i&&(o=!o)}return o},N=t=>t.filter((e,o)=>t.findIndex(t=>t.x===e.x&&t.y===e.y)===o),B=t=>{let[e,o]=F(t);return t.sort((function(t,n){return Math.atan2(t.y-o,t.x-e)-Math.atan2(n.y-o,n.x-e)})),t};let C,$,q,H=[{bg:"#000000",colors:["#FFFFFF"]},{bg:"#FFFBF0",colors:["#0058b9"]},{bg:"#FFFBF0",colors:["#F00"]},{bg:"#FFFBF0",colors:["#F00","#0058b9"]},{bg:"#F6F5F4",colors:["#023c19"]},{bg:"#F6F5F4",colors:["#880018"]},{bg:"#FFFFFF",colors:["#000"]}],I=[[0,10],[1,10],[2,10],[3,3],[4,6],[5,6],[6,12]],L=[],j=0,D=0;const G=[[0,.65],[-.2,.6],[.1,.6]],z=[[-.1,.42,.57,.6],[-.3,.25,.42,.62],[-.2,.35,.45,.52]];let R,U,P=[],V=1*o,W=1,O={},T=new d(u),X={active:!0,size:"A3",name:tokenData.hash,download:!1,hideCanvas:!0,removeSVG:!1,hideFill:!1};const J=()=>{(t=>{console.log("Stroomlijn - Bart Simons - 2023");let{width:e,height:o,ratio:n}=t||{};i(e,o,n)})({width:707.56302521,height:1e3,ratio:.70756302521}),ct();const o=r(e,0,1e3,0,1);D=.1*t,X.height=e,X.width=t,V?V*=o:V=1*o},K=()=>{P=[],L=[],j=0;const t=Q();Y(t),Z(),_(),tt(),ht()},Q=()=>{const t=707.56302521/U,e=[],o=O.fullSelection?x(z):x(G);for(let n=-353.781512605;n<1061.344537815;n+=t){let l=-250;for(;l<1250;){const s=C.noise1,i=C.noise2,h=C.noiseHeight1,c=C.noiseHeight2,a=T.noise(n*s,l*i),y=T.noise(n*h,l*c),u=r(y,-1,1,10,150),p=r(a,-1,1,.5*t,.7*t);let x={x:n+t/2-p/2,y:l+u/2,w:p,h:u};l+u>1250&&(x.h=1250-l);const d=T.noise(a,y);if(O.fullSelection){const t=O.broken?o[3]:1;d>-1&&d<o[0]?x.type="filled":d>o[0]&&d<o[1]?x.type="outlined":d>o[1]&&d<o[2]?x.type="barred":d>o[2]&&d<t?x.type="angled":x.type="empty"}else{const t=O.broken?o[1]:1;d>-1&&d<o[0]?x.type="outlined":d>o[0]&&d<t?x.type="filled":x.type="empty"}e.push(x),l+=10+u}}return e},Y=t=>{t.forEach((t,e)=>{const o=x(q);"filled"===t.type?st(t.x,t.y,t.w,t.h,o):"outlined"===t.type?lt(t.x,t.y,t.w,t.h,"outline",o):"barred"===t.type?rt(t.x,t.y,t.w,t.h,o):"angled"===t.type&&it(t.x,t.y,t.w,t.h,o)})},Z=()=>{P.forEach(o=>{o.path.forEach(o=>{o.x-=t/2,o.y-=e/2;const n=o.x*Math.cos(C.rotation)-o.y*Math.sin(C.rotation),l=o.x*Math.sin(C.rotation)+o.y*Math.cos(C.rotation);o.x=n+t/2,o.y=l+e/2})})},_=()=>{let o=D,n=t-D,l=e-D,s=D;const i=[];for(let t=0;t<P.length;t++){let e=!0;const[r,h]=[P[t].path,P[t].type];for(let t=0;t<r.length;t++){const i=r[t];if(i.x>=s&&i.x<=n&&i.y>=o&&i.y<=l){e=!1;break}}e&&(i.push(t),"filled-outline"===h&&i.push(t+1))}const r=[...new Set(i)];for(let t=r.length-1;t>=0;t--)P.splice(r[t],1)},tt=()=>{let o=t-D,n=e-D,l=[{x:D,y:D},{x:o,y:D},{x:o,y:n},{x:D,y:n},{x:D,y:D}];for(let o=0;o<P.length;o++){const n=P[o];let s=n.path,i=.1*D,r=[{x:i,y:i},{x:t-i,y:i},{x:t-i,y:e-i},{x:i,y:e-i},{x:i,y:i}],h=!0;if(s.forEach(o=>{(o.x<D||o.x>t-D||o.y<D||o.y>e-D)&&(h=!1)}),!h)if("outline"===n.type){const t=nt(s,l);if(P[o].path=t[0],t.length>1){const e={path:t[1],type:"outline"};P.splice(o+1,0,e)}}else if("filled"===n.type){R||(r=l);const t=ot(s,r,R,l);P[o].path=t}else if("filled-hatch"===n.type){const t=ot(s,l);P[o].path=t}else if("outline-hatch"===n.type){const t=et(s,l);P[o].path=t}else if("filled-outline"===n.type)if(R){let t=!0;if(s.forEach(e=>{E(e,r)||(t=!1)}),!t){const t=[];P[o].path=t}}else{const t=et(s,l);P[o].path=t}}},et=(t,e)=>{let o=[];const n=v(t,e),l=[];n.forEach(t=>{l.push({...t})});const s=A(t,e);if(o.push(...s,...n),l.forEach(t=>{t.x=Math.floor(t.x),t.y=Math.floor(t.y)}),n.length<2)o.push(n[0]);else if(l[0].x===l[1].x||l[0].y===l[1].y||4===n.length);else{const[t,n]=F(o),l=((t,e,o)=>{const[n,l,s,i]=o,r=Math.sqrt((t-n.x)**2+(e-n.y)**2),h=Math.sqrt((t-l.x)**2+(e-l.y)**2),c=Math.sqrt((t-s.x)**2+(e-s.y)**2),a=Math.sqrt((t-i.x)**2+(e-i.y)**2),y=Math.min(r,h,c,a);return y===r?n:y===h?l:y===c?s:y===a?i:null})(t,n,e);o.push(l)}return o=N(o),o=B(o),o.push(o[0]),o},ot=(t,e,o=!1,n)=>{let l=[];if(o)for(let o=0;o<t.length;o++){const l=t[o];if(!E(l,e))return void nt(t,n)}for(let o=0;o<t.length;o++){const n=t[o],s=t[o+1]||t[0],i=v([n,s],e);E(n,e)?l.push(n):i.length>0&&(t[o]=i[0],l.push(...i))}return l},nt=(t,e)=>{let o=[];const n=v(t,e),l=A(t,e);if(o.push(...l,...n),o=N(o),o=B(o),n.length>2)o=(t=>{let e=[],o=[[],[]];e=M(t);let[n,l,s,i]=[e[0][1],e[1][0],e[1][1],e[0][0]];const r=t.slice(s).concat(t.slice(0,s));e=M(r),[n,l,s,i]=[e[0][1],e[1][0],e[1][1],e[0][0]];for(let t=0;t<r.length;t++)t>=n&&t<=l&&o[0].push(r[t]),s<i?t>=s&&t<=i&&o[1].push(r[t]):(t>=s||t<=i)&&o[1].push(r[t]);return o})(o);else if(2===n.length)for(let t=0;t<o.length;t++){let e=t===o.length-1?0:t+1;if(o[t]==n[1]&&o[e]==n[0]||o[t]==n[0]&&o[e]==n[1]){const e=o.slice(0,t+1),n=o.slice(t+1);n.push(...e),o=n}}return[o]},lt=(t,e,o,n,l="outline",s="#000000")=>{let i=[];i.push({x:t,y:e-n/2}),i.push({x:t+o,y:e-n/2}),i.push({x:t+o,y:e+n/2}),i.push({x:t,y:e+n/2}),i.push({x:t,y:e-n/2}),P.push({path:i,type:l,col:s})},st=(t,e,o,n,l="#000000")=>{const s=[];for(let l=e-n/2;l<e+n/2;l+=V)s.push({x:t,y:l}),s.push({x:t+o,y:l});lt(t,e,o,n,"filled-outline",l),P.push({path:s,type:"filled",col:l})},it=(t,e,n,l,s="#000000")=>{const i=[[]],r=[{x:t,y:e-l/2},{x:t+n,y:e-l/2},{x:t+n,y:e+l/2},{x:t,y:e+l/2},{x:t,y:e-l/2}];let h=0;for(let s=e-2*l,c=0;s<e+2*l;s+=V){let e={x:t-n,y:s+50*o},l={x:t+2*n,y:s};const a=v([e,l],r);0===a.length?(l={},e={}):1===a.length?l=a[0]:2===a.length&&([e,l]=a),i[c].push(e),i[c].push(l),h++,h===Math.round(4*W)&&(s+=5*V*W,h=0,c++,i.push([]))}for(let t=0;t<i.length-1;t++)P.push({path:i[t],type:"filled-hatch",col:s});lt(t,e,n,l,"outline-hatch",s)},rt=(t,e,o,n,l="#000000")=>{const s=[[]];let i=0;for(let l=e-n/2,r=0;l<e+n/2;l+=V)s[r].push({x:t,y:l}),s[r].push({x:t+o,y:l}),i++,i===Math.round(6*W)&&(l+=4*V*W,i=0,r++,s.push([]));for(let t=0;t<s.length;t++)P.push({path:s[t],type:"filled-hatch",col:l});lt(t,e,o,n,"outline-hatch",l)},ht=()=>{P.forEach(t=>{const e=t.path,o=t.type,n=t.col;if(X.active&&void 0!==e&&e.length>0){const t=at(n);L.push({path:[],col:n,colName:t,type:o});for(let t=0;t<e.length;t++){const o=a(e[t].x,e[t].y);isNaN(o.x)||isNaN(o.y)||L[j].path.push(a(e[t].x,e[t].y))}j++}})},ct=()=>{var t,e;C={rotation:p(0,2*Math.PI),noise1:p(1e-5,5e-4),noise2:.001,noiseHeight1:.001,noiseHeight2:.001,scale:(t=15,e=40,Math.floor(p(t,e))),overlapAllowed:u()<.5};const o=(t=>{let e=[];for(let o in t)e=e.concat(new Array(t[o][1]).fill(t[o][0]));return x(e)})(I),n=H[o];$=n.bg,q=n.colors,R=u()<.64,U=C.scale;const l=Math.round(r(U,15,39,0,2));O.breakout=R,O.scale=["Small","Medium","Large"][l],O.broken=u()<.6,O.fullSelection=u()<.73;const s=window.location.search,i=new URLSearchParams(s),h=Number(i.get("density"));0!==h&&(W=h),W&&W>1&&W<3.01&&(V=1/W)},at=t=>"#FFFFFF"===t?"White/Silver":"#0058b9"===t?"Micron Blue":"#F00"===t?"Micron Red":"#023c19"===t?"Micron Hunter Green":"#880018"===t?"Micron Burgundy":"#000"===t?"Micron Black":void 0;window.onkeypress=t=>{32==t.which&&(X.download=!0,X.hideFill=!0,h(L,X,$))},tokenData.plot?(J(),K(),X.hideFill=!0,h(L,X,$)):(J(),K(),h(L,X,$))
0x5079a8ad…cd43·#16,296,977·0x76d5353a…eb8c0d
RoBart Simons Ones`Address: call to non-contractAddress: call to non-contractAddress: low-level delegate call failedAddress: low-level delegate call failed
0x5079a8ad…cd43·#16,296,924·0x873b5c0c…35b9be
Bart Simons EditionsAddress: call to non-contractAddress: call to non-contractAddress: low-level delegate call failedAddress: low-level delegate call failed
let W,H,M,P,ST,IST,ISO,nC,xO,yO,iA,stg={},bg=[210,20,16],sCL=[210,1,98,.5],mLl=[300,0,97],b=[];function setup(){init(),createCanvas(W,H),noLoop(),noiseSeed(tokenData.hash),IST=[{wM:0,hM:1,a:-.306456,yJ:.05*W,nL:35,lB:20*M},{wM:0,hM:1.2,a:.306356,yJ:.05*W,nL:35,lB:20*M},{wM:.1,hM:1.35,a:.46365,yJ:.04*W,nL:50,lB:20*M},{wM:.1,hM:1.05,a:-.46365,yJ:.04*W,nL:48,lB:20*M},{wM:.1,hM:1.03,a:.05,yJ:.03*W,nL:46,lB:19*M,lS:2.2*M},{wM:0,hM:1,a:-.05,yJ:.03*W,nL:46,lB:19*M,lS:2.2*M},{wM:.1,hM:1.01,a:-.2,yJ:.072*W,nL:22,lB:21*M,lS:2.4*M},{wM:0,hM:1.15,a:.2,yJ:.072*W,nL:21,lB:21*M,lS:2.4*M}];let t=rFwA([[0,25],[1,25],[2,20],[3,20],[4,5],[5,5],[6,5],[7,5]]);ISO=IST[t];ST={ch:R()<.6,chT:void 0,cMn:R()<.018,dSc:R()<.25,bP:R()<.8,fS:R()<.02,hCb:R()<.6,iA:ISO.a,iS:t,lS:ISO.lS?ISO.lS:2.5*M,lB:ISO.lB,mBl:10,nL:ISO.nL,nO:R()<.3,sO:R()<.27,sC:R()<.2,sF:R()<.28,sq:R(),sL:R()<.15,sP:R()<.6?ROUND:PROJECT,uLa:R()<.4,uC:R()<.3,uLw:R()<.15,mC:R()<.15,xO:W*ISO.wM,yO:H*ISO.hM},ST.cSp=rFwA([["Random",65],["Bar",10],["Single",15]]),ST.ch&&"Random"==ST.cSp&&R()<.5&&(ST.cSp="RandomBar"),ST.sq<.15?ST.sq="Full":ST.sq<.25?ST.sq="Mixed":ST.sq="None",ST.cPl=sCs(),"Mixed"===ST.cSp||"Bar"===ST.cSp?(bg=ST.cPl[0].fl,sCL=ST.cPl[0].st):(bg=ST.cPl.bg,sCL=ST.cPl.st),ST.uLa&&R()<.3&&(ST.uC=!0),iI(ST.xO,ST.yO,ST.iA),colorMode(HSB,360,100,100,1),background(bg),strokeCap(ST.sP),strokeWeight(2*M),noFill(),gB()}function gB(){let t=[],s=rFr(.015*W,.025*W),l=rFwA([[2,40],[3,40],[4,50],[5,5],[6,5]]),e=rFr(.2*W,.8*W),n=R()<.5,i=rIfR(0,2);ST.ch||ST.sC||ST.sO||(ST.ch=!0);for(let h=1;h<ST.nL+1;h++){let r=rFr(.027*W,.054*W),S=ISO.yJ;ST.sO&&(r*=1.5),t.push([]);for(let l=.2*-W;l<1.2*W;l+=r){let i,r;if(ST.nO&&!ST.sO){let t=map(l,.2*-W,1.2*W,0,stg.b);i=round(noise(t,h)*(.03*W))}else ST.nO=!1,i=rFr(.007*W,.02*W);ST.sO?("Full"==ST.sq&&(ST.sq="Mixed"),r=R()<.5==0?s:0):r=R()<.3==0?i:0;let c=0,f=n?l>e:l<e;ST.sF&&f&&(r=0,c+=.015*W);let T=IC(l,S*h+r+c,0),o=0,p=1*W,a=0,u=1.1*H;ST.cMn&&(ST.uLw=!1,ST.hCb=!0,p*=R(),o=rFr(.1*W,.6*W)),T.x>o&&T.x<p&&T.y>a&&T.y<u&&t[h-1].push(T),ST.fS&&R()<.7&&(l+=.1*W)}let c=PI/ST.nL,f=sin(h*c);nC=rIfR(1,3),R()<.1&&(nC=rIfR(1,5)),ST.ch&&(void 0===ST.chT&&(R()<.8?ST.chT="Random":ST.chT="Sine"),"Random"==ST.chT?nC=rIfR(1,9):"Sine"==ST.chT&&(nC=ceil(map(f,0,1,1,9)))),ST.sC&&(nC=l,ST.uC=!1,ST.eCu=!0),ST.eCu&&ST.fS&&(nC=rIfR(0,2));let T=20;ST.uLa&&(T=ST.sL?floor(map(f,.01,1,2,20)):rIfR(6,22));let o=!1;if("Mixed"===ST.sq?o=R()<.5:"Full"===ST.sq&&(o=!0),ST.mC&&(nC=i),0===nC&&"Sine"!==ST.chT&&(ST.ch=!1,ST.bP=!1),t[h-1].length>1){let s=!!ST.uLw&&R()<.5,l=new Bar(t[h-1],T,nC,ST.eCu,o,s);b.push(l)}}b.reverse(),b.forEach((t=>{ST.bP&&t.bP(),t.dCh()})),dBr()}function init(){stg.b=1e3,stg.h=window.innerHeight,stg.w=stg.h/1.4142,stg.s=Math.min(stg.w,stg.h),stg.m=stg.s/stg.b,[W,H,M,P]=[stg.w,stg.h,stg.m,.1*stg.w]}class Bar{constructor(t,s,l,e,n,i){this.pts=t,this.chs=[],this.nchs=l,this.eCu=e,this.rv=R()*R()<.1,this.lys=s,this.sq=n,this.bID=rIfR(0,3),this.coS=rBCs(this.bID),this.cfRB=[],this.uLw=i,this.init()}init(){this.sOff=rFr(.5,.8),this.th=this.uLw?ST.lB*this.sOff:ST.lB,this.lys=this.uLw?floor(this.lys*(1/this.sOff)):this.lys,this.lS=this.uLw?ST.lS*this.sOff:ST.lS,ST.dSc?this.sCap=R()<.5?PROJECT:ROUND:this.sCap=ST.sP,this.rv&&(this.pts=reverse(this.pts)),this.spCh()}spCh(){0!==this.nchs?this.eCu?this.chs=spT(this.pts,this.nchs):this.chs=sTrC(this.pts,this.nchs):this.chs.push(this.pts)}dCh(){let t=0===this.chs.length?1:this.chs.length;for(let s=0;s<t;s++){let t=this.chs[s],l=this.lys;if(ST.uC&&(l=rIfR(.5*l,1.5*l),ST.uLa=!0),t.length<ST.mBl&&0!==s&&ST.hCb&&R()<.8){const s=rIfR(1,t.length-1);t.splice(0,s)}let e=0;for(let n=0;n<l;n++)for(let i=1;i<3;i++){let h=i%2==0?.8*this.th:this.th,r=i%2==0?mLl:rBCs(this.bID);if("Random"==ST.cSp&&(r=i%2==0?mLl:rFa(this.coS)),"RandomBar"==ST.cSp){if(0==s&&void 0===this.cfRB[e+1]){let t=i%2==0?mLl:rFa(this.coS);this.cfRB.push(t),r=t,e++}if(void 0!==this.cfRB[e]&&0!==s)r=this.cfRB[e],e++;else if(0!==s){let t=i%2==0?mLl:rFa(this.coS);r=t,this.cfRB.push(t),e++}n==l-1&&2==i&&(r=ST.cPl.fl)}if(n==l-1&&2==i&&(r=ST.cPl.fl),n==l-1&&1==i&&(r=sCL),push(),beginShape(),strokeWeight(h),strokeCap(this.sCap),stroke(r),1==t.length)if(ST.sCap==ROUND||1==ST.dSc)strokeCap(ROUND),circle(t[0].x,t[0].y-n*this.lS,0);else{let l;if(null!=this.chs[s-1])l=this.chs[s-1][0];else{if(null==this.chs[s+1])return;l=this.chs[s+1][0]}let e=aBtP(l.x,l.y,t[0].x,t[0].y);push(),translate(t[0].x,t[0].y-n*this.lS),rotate(radians(e)),rectMode(CENTER),rect(0,0,2*M,2*M),pop()}if(1!=t.length)for(let s=0;s<t.length;s++){let l=t[s];this.sq?curveVertex(l.x,l.y-n*this.lS):vertex(l.x,l.y-n*this.lS)}endShape(),pop()}}}bP(){for(let t=0;t<this.pts.length;t++){let s=this.pts[t];if(push(),noFill(),"Mixed"===ST.cPl.nA?stroke(0,.5):stroke(ST.cPl.bpt),drawingContext.setLineDash([2*M,3*M]),strokeWeight(M),this.sCap===PROJECT){let l;if(null!=this.pts[t-1])l=this.pts[t-1];else{if(null==this.pts[t+1])return;l=this.pts[t+1]}let e=aBtP(l.x,l.y,s.x,s.y);push(),translate(s.x,s.y),rectMode(CENTER),rotate(radians(e)),rect(0,0,12*M,12*M),pop()}else circle(s.x,s.y,12*M);pop()}}}function iI(t,s,l=.46365){xO=t,yO=s,iA=l}function gIX(t,s,l){return(t-l)*cos(iA)+xO}function gIY(t,s,l){return-(s+(t+l)*sin(iA))+yO}function IC(t,s,l){return{x:gIX(t,s,l),y:gIY(t,s,l)}}function spT(t,s){let l=[...t],e=[];for(let t=s;t>0;t--)e.push(l.splice(0,ceil(l.length/t)));return e}function sTrC(t,s){if(0===s)return t;let l=[...t];"Full"===ST.sq&&(l=aMp(l));let e,n=[];for(let t=s;t>0;t--)e=rIfR(1,l.length),0!=e&&n.push(l.splice(0,e));return 0!=e&&n.push(l),n}function aBtP(t,s,l,e){return Math.atan2(e-s,l-t)*(180/PI)}function sCs(){let t=[0,.4],s=[0],l=[60,3.4,92.2],e={nA:"Red",cls:[[0,94,45.5],[356,100,63.9],[352,100,82],[353,83.9,75.5],[352,76.6,85.5],[352,55.1,89]],bg:l,st:s,bpt:t,fl:l},n={nA:"Blue",cls:[[206,98.6,29],[205,99.2,48.6],[202,72.2,59.2],[198,60,68.6],[197,36.9,85.1]],bg:l,st:s,bpt:t,fl:l},i={nA:"Green",cls:[[148,100,29.4],[120,100,44.7],[101,100,69]],bg:l,st:s,bpt:t,fl:l},h={nA:"Orange",cls:[[25,98.5,80],[26,87.2,88.6],[39,97.8,88.2],[40,84.7,100],[39,55.7,100]],bg:l,st:s,bpt:t,fl:l},r={nA:"Purple",cls:[[271,92,42],[272,77,75],[274,51,100],[270,84,60]],bg:l,st:s,bpt:t,fl:l},S={nA:"Brown",cls:[[28,49,74],[29,63,55],[33,92,38],[31,78,44]],bg:l,st:s,bpt:t,fl:l},c=[e,i,n,r,S,{nA:"Black",cls:[[0,0,12.2],[0,0,20],[0,0,27.5],[30,100,.8]],bg:l,st:s,bpt:t,fl:l},h],f=[e,n,i],T=[S,r,h],o=[{nA:"MX1",cls:[[12,100,92],[1,61,75],[14,54,93]],bg:[41,10,94],st:s,bpt:s,fl:[41,10,94]},{nA:"MX2",cls:[[171,17,74],[161,9,85],[172,27,65]],bg:[41,10,94],st:s,bpt:s,fl:[41,10,94]},{nA:"MX3",cls:[[233,42,7],[231,17,16],[231,12,24]],st:s,bg:[41,10,94],bpt:s,fl:[41,10,94]}],p=[{nA:"Original",cls:[[191,79,65],[136,43,62],[41,82,99],[359,63,78],[222,32,24]],bg:l,st:s,bpt:t,fl:l},{nA:"Persian",cls:[[209,74.5,53.7],[358,78.8,75.7],[52,99.2,94.5],[30,100,.8]],bg:l,st:s,bpt:t,fl:l},{nA:"Black & White",cls:[[210,1,98],[210,3,90],[210,8,74],[208,14,49]],bg:[210,20,16],st:[210,1,98,.5],bpt:[210,1,98,.5],fl:[210,20,16]},{nA:"Black & Retro",cls:[[32,75,100],[135,57,48],[358,63,92],[196,65,67]],bg:[0,45,12],st:[43,26,27],bpt:[210,1,98,.5],fl:[41,55,11]},{nA:"Lime",cls:[[135,39,63],[70,51,79],[92,50,68],[157,79,40]],bg:[70,22,90],st:s,fl:[60,3,91],bpt:t},{nA:"Bone",cls:[[197,25,66],[37,12,76],[215,90,29],[35,11,43]],bg:[39,7,91],st:s,fl:[39,7,91],bpt:t},{nA:"Solstice",cls:[[350,90,76],[198,100,85],[104,52,65],[49,96,99],[0,0,3]],bg:[0,0,96],st:s,fl:[0,0,96],bpt:t},{nA:"Pop Art",cls:[[244,76,68],[356,100,74],[55,98,100]],bg:[30,21,91],st:[300,89,4],fl:[30,21,91],bpt:t},{nA:"Washed",cls:[[32,57,87],[28,80,74],[74,48,42]],bg:[52,12,100],st:[0,.5],fl:[52,12,100],bpt:t},{nA:"Salmon",cls:[[197,3,96],[218,19,68],[235,35,26],[350,98,71]],bg:[353,72,89],st:[0,1],fl:[0,0,100],bpt:[350,98,47]},{nA:"Mustard",cls:[[28,23,63],[19,56,42],[48,25,93],[18,17,70]],bg:[42,69,91],st:[0,1],fl:[300,0,97],bpt:[7,12,29]},{nA:"Punk",cls:[[18,74,80],[20,37,76],[31,52,35]],bg:[72,2,93],st:[197,26,11],fl:[72,2,93],bpt:t},{nA:"Lavender",cls:[[316,28,47],[288,33,35],[358,54,51],[10,50,93],[2,26,75]],bg:[10,26,96],st:s,bpt:t,fl:[10,12,98]},{nA:"Earth",cls:[[209,70,75],[1,53,45],[45,71,89],[95,37,48]],bg:[95,37,48],st:s,fl:[45,11,89],bpt:t}];return"Single"===ST.cSp?rFa(c):"Bar"===ST.cSp?rFa([f,T,o]):p[rIfR(0,p.length)]}function rBCs(t){let s=ST.cPl.cls;if("Bar"==ST.cSp){ST.cPl.nA="Mixed",ST.cPl.fl=ST.cPl[t].bg;let s=ST.cPl[t].cls;return s[rIfR(0,s.length)]}if("Random"==ST.cSp||"RandomBar"==ST.cSp)return s;if("Single"==ST.cSp){let t=ST.cPl.cls;return t[rIfR(0,t.length)]}}function aMp(t){let s=[];for(let l=0;l<t.length;l++){let e=t[l];if(0==l)s.push(e);else{let n=t[l-1],i=createVector((e.x+n.x)/2,(e.y+n.y)/2);s.push(i),s.push(e)}}return s}function dBr(){stroke(bg),strokeWeight(.05*W),line(0,0,W,0),line(0,0,0,H),line(W,0,W,H),line(0,H,W,H)}function rFr(t,s){return t+(s-t)*R()}function rIfR(t,s){return floor(rFr(t,s))}function rFa(t){return t[floor(R()*t.length)]}function rFwA(t){let s=[];for(let l in t)s=s.concat(new Array(t[l][1]).fill(t[l][0]));return rFa(s)}S=Uint32Array.from([0,1,s=t=2,3].map((t=>parseInt(tokenData.hash.substr(8*t+2,8),16)))),R=l=>(t=S[3],S[3]=S[2],S[2]=S[1],S[1]=s=S[0],t^=t<<11,S[0]^=t^t>>>8^s>>>19,S[0]/2**32);
let cA,gL,hB,hC,hR,hS,lT,mS,R,sA,sC,eC,tC,sS,tP,wH,sW,aO=0,cR=0,cs=[],nB=0,oC=0,tH=tokenData.hash,wC=0,tA=[[[0,67,84],[358,100,46],[27,40,99],[20,8,14]],[[333,51,91],[333,74,88],[333,84,69],[52,99,87],[115,71,68]],[[196,48,79],[206,55,72],[206,58,56],[350,81,89],[38,30,97]],[[270,29,88],[259,42,82],[270,58,79],[189,37,92],[202,42,86]],[[178,50,57],[173,74,32],[173,64,15],[21,36,97],[13,11,100]],[[19,44,82],[30,26,93],[11,72,80],[197,23,56],[119,53,71]],[[71,61,57],[163,35,47],[213,10,34],[41,74,98],[215,75,77],[16,75,88]],[[41,25,55],[46,27,44],[51,80,19],[339,56,100],[54,62,97],[251,14,75]],[[46,48,100],[47,79,100],[47,100,64],[192,33,82],[359,40,100],[147,41,85]],[[153,64,47],[128,33,73],[153,70,32],[10,73,83],[31,21,95],[204,100,100]],[[280,1,93],[180,1,73],[221,74,87],[92,49,69],[51,94,80],[0,83,82]],[[27,40,99],[16,67,84],[358,100,46],[0,0,95],[80,10,91],[212,60,60]],[[60,28,51],[53,31,84],[53,62,29],[53,14,94],[17,34,85],[357,29,73]],[[360,84,70],[0,58,85],[0,86,47],[115,7,72],[37,26,93]],[[73,16,44],[66,5,73],[0,0,12],[32,57,87],[52,12,100],[28,80,74]],[[0,0,16],[0,0,16],[0,0,40],[0,0,90],[0,0,95],[0,0,100]],[[11,10,89],[22,13,61],[24,18,44],[354,86,79],[231,27,56]],[[26,16,100],[7,44,89],[0,30,69],[60,9,75],[60,15,65]]];function setup(){colorMode(HSB,360,100,100,1),noLoop(),R=new Rd,noiseSeed(tH),wH=windowHeight,sW=.75*wH,createCanvas(sW,wH),sCs(),background(sC),hB=R.rD()>.6,hC=R.rD()>.5,hR=R.rD()>.75,hS=R.rD()>.45,lT=R.rD()<.75?.25:.05,mS=R.rD()>.42,sA=R.rD()>.85,sS=R.rD()>.55?.015:.008,0==tP&&(mS=!1,sS=.008)}function draw(){stroke(tC);let e,t=ceil(.5*wH/10);if(mS){let t=color(R.rC(cA));if(hS&&dS(t),dM(.165*sW,0,TAU,t),hR&&dR(),hC){aO=R.rI(1,2);for(let e=0;e<aO;e++)gC();sHc()}hB&&dB(),e=.5*wH}else e=-t;for(let r=e;r<wH;r+=t)cW(r),wC++;dWb()}function cW(e){let t=R.rN(TAU,12*TAU),r=[],s=R.rN(.04*sW,.085*sW);R.rD()>.95&&(s=.025*sW);let l=sA?s:s*R.rN(.5,.8),n=sW/R.rN(1.1,2.35),i=.001*sW,o=TAU/n*i,c=[],a=[],h=t;for(let e=0;e<sW/i+2;e++)c.push(sin(h)*s),a.push(sin(h)*l),h+=o;beginShape(),strokeWeight(.005*sW),stroke(tC);let W=lerpColor(sC,eC,e/wH);fill(W),vertex(.05*-sW,wH),vertex(.05*-sW,wH),curveVertex(.05*-sW,e+c[0]);for(let t=0;t<c.length;t++)curveVertex(t*i,e+c[t]),wC>3&&R.rD()<32e-5&&dO(t*i,e),r.push(createVector(t*i,e+a[t]));vertex(sW+.05*sW,wH),vertex(sW+.05*sW,wH),endShape();for(let e=0;e<35;e++)cSw(e,r)}function cSw(e,t){beginShape(),noFill(),strokeWeight(.003*sW);for(let r=0;r<t.length;r++)curveVertex(t[r].x,t[r].y+sW*sS*e),R.rD()<lT&&(endShape(),beginShape());endShape()}function sCs(){tP=R.rI(0,tA.length-1),cA=tA[tP],sC=color(cA[0]),eC=color(cA[1]),tC=color(cA[2]),cA.splice(0,3)}function dO(e,t){let r=R.rN(.2*sW,.35*sW),s=e-r/2,l=t-r/2;s>0&&s<sW&&l>0&&l<wH&&(push(),strokeWeight(.005*sW),stroke(tC),fill(color(R.rC(cA))),circle(e,t-.01*wH,r),oC++,pop())}function gC(e){let t={br:[],bd:[],cn:[]},r=e?3:R.rI(3,6),s=e?R.rN(.05*sW,.75*sW):R.rN(.05*sW,.65*sW),l=e?R.rN(.05*wH,.35*wH):R.rN(.05*wH,.32*wH),n=[0,0],i=[[],[]],o=[];for(let c=0;c<r;c++){let r=R.rN(s-.02*sW,s+.022*sW),a=e?R.rN(.15*sW,.25*sW):R.rN(.15*sW,.4*sW);if(0!=c){let e=.03*wH,s=max([n[0],r])+e,i=min([n[1],r+a])-e,o=R.rN(s,i);t.cn.push([o,l+c*wH*.03-.015*wH,.02*wH,.02*wH])}n[0]=r,n[1]=r+a;let h=l+c*(.03*wH);t.br.push([r,h,a,.03*sW,.03*wH]),i[0].push(r),i[1].push(r+a),o.push(h),r+=R.rN(.03*-sW,.03*sW)+a}let c=min(i[0]),a=max(i[1]),h=min(o),W=max(o);t.bd.push(c,h,a-c,W-h+.02*wH),cs.length>0&&cs.forEach(e=>{cD(e.bd,t.bd)?cR<200&&(cR++,gC(!0)):cs.length<aO&&cs.push(t)}),0==cs.length&&cs.push(t)}function sHc(){for(let e=0;e<cs.length;e++){let t=cs[e];fill(tC),noStroke();for(let e=0;e<t.br.length;e++){let r=t.br[e];rect(r[0],r[1],r[2],r[3],r[4])}for(let e=0;e<t.cn.length;e++){let r=t.cn[e];rect(r[0],r[1],r[2],r[3])}}}function cD(e,t){let[r,s,l,n]=e,[i,o,c,a]=t;return r<i+c&&r+l>i&&s<o+a&&n+s>o}function dR(){let e=R.rI(100,180);for(let t=0;t<e;t++){push();let e=lightness(sC)>50?color(0,0,0,.3):color(0,0,100,.3);stroke(e),strokeWeight(.0013*sW);let t=R.rN(.05*-sW,.95*sW),r=R.rN(.05*-wH,.45*wH);line(t,r,t+.05*sW,r+.15*wH),pop()}}function dB(){noStroke(),nB=R.rI(1,4);let e=R.rD()<.5;for(let t=0;t<nB;t++){let t=createVector(R.rN(.25*sW,.75*sW),R.rN(.1*wH,.4*wH),R.rN(-.1,.15)),r=lerpColor(sC,color(0,50,0),.2),s=lerpColor(eC,color(0,50,0),.2);push(),translate(t.x,t.y),rotate(t.z),e&&scale(-1,1);let l=R.rI(0,2);scale(.0015*sW),0==l?(scale(1.15),fill(r),triangle(33,5,36,10,28,10),fill(s),triangle(14,15,24,15,20,0),fill(s),triangle(0,15,33,5,25,15),fill(r),triangle(16,15,26,15,22,0)):1==l?(fill(s),triangle(0,8,10,10,16,5),fill(r),triangle(10,10,20,10,16,2),fill(r),triangle(18,2,31,0,24,20),fill(s),triangle(16,2,28,0,23,20),fill(r),triangle(38,5,33,6,36,10),fill(s),triangle(31,0,38,5,28,8)):2==l&&(scale(.9),fill(r),triangle(0,4,15,4,15,15),fill(s),triangle(0,0,15,0,15,15),fill(r),triangle(15,0,15,30,25,10),fill(s),triangle(15,15,20,25,15,30),fill(s),triangle(25,10,25,0,20,5),fill(r),triangle(25,5,25,0,30,5)),pop()}}function dWb(){noFill(),strokeWeight(.02*sW),stroke(tC),rect(0,0,sW,wH)}function dS(e){let t=R.rI(200,350);noFill(),stroke(e),strokeWeight(.001*sW);for(let e=0;e<t;e++){let e=R.rN(.05*sW,.95*sW),t=R.rN(.05*wH,.4*wH);if(e>0&&e<sW&&t>0&&t<wH){let r=.003*sW;push(),blendMode(DIFFERENCE),rotate(R.rD()*TAU),line(e-r,t,e+r,t),line(e,t+r,e,t-r),pop()}}}const dM=(e,t,r,s)=>{let l=int(sW),n=int(.75*wH),i=createGraphics(l,n);gL=createGraphics(l,n),setGradient(0,0,l,n,s),i.translate(sW/2,.33*wH),i.beginShape(),i.fill(eC),i.noStroke();for(let s=t;s<r;s+=.05){let t=map(cos(s),-1,1,0,2),r=map(cos(s),-1,1,0,2),l=map(noise(t,r),0,1,2*e,1.1*e*2);i.vertex(l*cos(s),l*sin(s))}i.endShape(CLOSE);let o=createGraphics(l,n);(o=gL.get()).mask(i),image(i,0,0),image(o,0,0)},setGradient=(e,t,r,s,l)=>{for(let t=0;t<=s;t++){let n=map(1.2*t,0,s,2,0),i=l;i.setAlpha(n),gL.stroke(i),gL.line(e,t,e+r,t)}};class Rd{constructor(){this.useA=!1;let e=function(e){let t=parseInt(e.substr(0,8),16),r=parseInt(e.substr(8,8),16),s=parseInt(e.substr(16,8),16),l=parseInt(e.substr(24,8),16);return function(){let e=((t|=0)+(r|=0)|0)+(l|=0)|0;return l=l+1|0,t=r^r>>>9,r=(s|=0)+(s<<3)|0,s=(s=s<<21|s>>>11)+e|0,(e>>>0)/4294967296}};this.prngA=new e(tH.substr(2,32)),this.prngB=new e(tH.substr(34,32));for(let e=0;e<1e6;e+=2)this.prngA(),this.prngB()}rD(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}rN(e,t){return e+(t-e)*this.rD()}rI(e,t){return Math.floor(this.rN(e,t+1))}rC(e){return e[this.rI(0,e.length-1)]}}
let cA,gL,hB,hC,hR,hS,lT,mS,R,sA,sC,eC,tC,sS,tP,wH,sW,aO=0,cR=0,cs=[],nB=0,oC=0,tH=tokenData.hash,wC=0,tA=[[[0,67,84],[358,100,46],[27,40,99],[20,8,14]],[[333,51,91],[333,74,88],[333,84,69],[52,99,87],[115,71,68]],[[196,48,79],[206,55,72],[206,58,56],[350,81,89],[38,30,97]],[[270,29,88],[259,42,82],[270,58,79],[189,37,92],[202,42,86]],[[178,50,57],[173,74,32],[173,64,15],[21,36,97],[13,11,100]],[[19,44,82],[30,26,93],[11,72,80],[197,23,56],[119,53,71]],[[71,61,57],[163,35,47],[213,10,34],[41,74,98],[215,75,77],[16,75,88]],[[41,25,55],[46,27,44],[51,80,19],[339,56,100],[54,62,97],[251,14,75]],[[46,48,100],[47,79,100],[47,100,64],[192,33,82],[359,40,100],[147,41,85]],[[153,64,47],[128,33,73],[153,70,32],[10,73,83],[31,21,95],[204,100,100]],[[280,1,93],[180,1,73],[221,74,87],[92,49,69],[51,94,80],[0,83,82]],[[27,40,99],[16,67,84],[358,100,46],[0,0,95],[80,10,91],[212,60,60]],[[60,28,51],[53,31,84],[53,62,29],[53,14,94],[17,34,85],[357,29,73]],[[360,84,70],[0,58,85],[0,86,47],[115,7,72],[37,26,93]],[[73,16,44],[66,5,73],[0,0,12],[32,57,87],[52,12,100],[28,80,74]],[[0,0,16],[0,0,16],[0,0,40],[0,0,90],[0,0,95],[0,0,100]],[[11,10,89],[22,13,61],[24,18,44],[354,86,79],[231,27,56]],[[26,16,100],[7,44,89],[0,30,69],[60,9,75],[60,15,65]]];function setup(){colorMode(HSB,360,100,100,1),noLoop(),R=new Rd,noiseSeed(tH),wH=windowHeight,sW=.75*wH,createCanvas(sW,wH),sCs(),background(sC),hB=R.rD()>.6,hC=R.rD()>.5,hR=R.rD()>.75,hS=R.rD()>.45,lT=R.rD()<.8?.25:.05,mS=R.rD()>.42,sA=R.rD()>.85,sS=R.rD()>.6?.015:.008,0==tP&&(mS=!1,sS=.008)}function draw(){stroke(tC);let e,t=ceil(.5*wH/10);if(mS){let t=color(R.rC(cA));if(hS&&dS(t),dM(.165*sW,0,TAU,t),hR&&dR(),hC){aO=R.rI(1,2);for(let e=0;e<aO;e++)gC();sHc()}hB&&dB(),e=.5*wH}else e=-t;for(let r=e;r<wH;r+=t)cW(r),wC++;dWb()}function cW(e){let t=R.rN(TAU,12*TAU),r=[],s=R.rN(.04*sW,.1*sW);R.rD()>.95&&(s=.025*sW);let l=sA?s:s*R.rN(.5,.8),n=sW/R.rN(1.2,2.5),i=.001*sW,o=TAU/n*i,c=[],a=[],h=t;for(let e=0;e<sW/i+2;e++)c.push(sin(h)*s),a.push(sin(h)*l),h+=o;beginShape(),strokeWeight(.005*sW),stroke(tC);let W=lerpColor(sC,eC,e/wH);fill(W),vertex(.05*-sW,wH),vertex(.05*-sW,wH),curveVertex(.05*-sW,e+c[0]);for(let t=0;t<c.length;t++)curveVertex(t*i,e+c[t]),wC>3&&R.rD()<25e-5&&dO(t*i,e),r.push(createVector(t*i,e+a[t]));vertex(sW+.05*sW,wH),vertex(sW+.05*sW,wH),endShape();for(let e=0;e<35;e++)cSw(e,r)}function cSw(e,t){beginShape(),noFill(),strokeWeight(.003*sW);for(let r=0;r<t.length;r++)curveVertex(t[r].x,t[r].y+sW*sS*e),R.rD()<lT&&(endShape(),beginShape());endShape()}function sCs(){tP=R.rI(0,tA.length-1),cA=tA[tP],sC=color(cA[0]),eC=color(cA[1]),tC=color(cA[2]),cA.splice(0,3)}function dO(e,t){let r=R.rN(.2*sW,.4*sW),s=e-r/2,l=t-r/2;s>0&&s<sW&&l>0&&l<wH&&(push(),strokeWeight(.005*sW),stroke(tC),fill(color(R.rC(cA))),circle(e,t-.01*wH,r),oC++,pop())}function gC(e){let t={br:[],bd:[],cn:[]},r=e?3:R.rI(3,6),s=e?R.rN(.05*sW,.75*sW):R.rN(.05*sW,.65*sW),l=e?R.rN(.05*wH,.35*wH):R.rN(.05*wH,.32*wH),n=[0,0],i=[[],[]],o=[];for(let c=0;c<r;c++){let r=R.rN(s-.02*sW,s+.022*sW),a=e?R.rN(.15*sW,.25*sW):R.rN(.15*sW,.4*sW);if(0!=c){let e=.03*wH,s=max([n[0],r])+e,i=min([n[1],r+a])-e,o=R.rN(s,i);t.cn.push([o,l+c*wH*.03-.015*wH,.02*wH,.02*wH])}n[0]=r,n[1]=r+a;let h=l+c*(.03*wH);t.br.push([r,h,a,.03*sW,.03*wH]),i[0].push(r),i[1].push(r+a),o.push(h),r+=R.rN(.03*-sW,.03*sW)+a}let c=min(i[0]),a=max(i[1]),h=min(o),W=max(o);t.bd.push(c,h,a-c,W-h+.02*wH),cs.length>0&&cs.forEach(e=>{cD(e.bd,t.bd)?cR<200&&(cR++,gC(!0)):cs.length<aO&&cs.push(t)}),0==cs.length&&cs.push(t)}function sHc(){for(let e=0;e<cs.length;e++){let t=cs[e];fill(tC),noStroke();for(let e=0;e<t.br.length;e++){let r=t.br[e];rect(r[0],r[1],r[2],r[3],r[4])}for(let e=0;e<t.cn.length;e++){let r=t.cn[e];rect(r[0],r[1],r[2],r[3])}}}function cD(e,t){let[r,s,l,n]=e,[i,o,c,a]=t;return r<i+c&&r+l>i&&s<o+a&&n+s>o}function dR(){let e=R.rI(100,180);for(let t=0;t<e;t++){push();let e=lightness(sC)>50?color(0,0,0,.3):color(0,0,100,.3);stroke(e);let t=R.rN(.05*-sW,.95*sW),r=R.rN(.05*-wH,.45*wH);line(t,r,t+.05*sW,r+.15*wH),pop()}}function dB(){noStroke(),nB=R.rI(1,4);let e=R.rD()<.5;for(let t=0;t<nB;t++){let t=createVector(R.rN(.25*sW,.75*sW),R.rN(.1*wH,.4*wH),R.rN(-.1,.15)),r=lerpColor(sC,color(0,50,0),.2),s=lerpColor(eC,color(0,50,0),.2);push(),translate(t.x,t.y),rotate(t.z),e&&scale(-1,1);let l=R.rI(0,2);scale(.0015*sW),0==l?(scale(1.15),fill(r),triangle(33,5,36,10,28,10),fill(s),triangle(14,15,24,15,20,0),fill(s),triangle(0,15,33,5,25,15),fill(r),triangle(16,15,26,15,22,0)):1==l?(fill(s),triangle(0,8,10,10,16,5),fill(r),triangle(10,10,20,10,16,2),fill(r),triangle(18,2,31,0,24,20),fill(s),triangle(16,2,28,0,23,20),fill(r),triangle(38,5,33,6,36,10),fill(s),triangle(31,0,38,5,28,8)):2==l&&(scale(.9),fill(r),triangle(0,4,15,4,15,15),fill(s),triangle(0,0,15,0,15,15),fill(r),triangle(15,0,15,30,25,10),fill(s),triangle(15,15,20,25,15,30),fill(s),triangle(25,10,25,0,20,5),fill(r),triangle(25,5,25,0,30,5)),pop()}}function dWb(){noFill(),strokeWeight(.02*sW),stroke(tC),rect(0,0,sW,wH)}function dS(e){let t=R.rI(200,350);noFill(),stroke(e),strokeWeight(.001*sW);for(let e=0;e<t;e++){let e=R.rN(.05*sW,.95*sW),t=R.rN(.05*wH,.4*wH);if(e>0&&e<sW&&t>0&&t<wH){let r=.003*sW;push(),blendMode(DIFFERENCE),rotate(R.rD()*TAU),line(e-r,t,e+r,t),line(e,t+r,e,t-r),pop()}}}const dM=(e,t,r,s)=>{let l=int(sW),n=int(.75*wH),i=createGraphics(l,n);gL=createGraphics(l,n),setGradient(0,0,l,n,s),i.translate(sW/2,.33*wH),i.beginShape(),i.fill(eC),i.noStroke();for(let s=t;s<r;s+=.05){let t=map(cos(s),-1,1,0,2),r=map(cos(s),-1,1,0,2),l=map(noise(t,r),0,1,2*e,1.1*e*2);i.vertex(l*cos(s),l*sin(s))}i.endShape(CLOSE);let o=createGraphics(l,n);(o=gL.get()).mask(i),image(i,0,0),image(o,0,0)},setGradient=(e,t,r,s,l)=>{for(let t=0;t<=s;t++){let n=map(1.2*t,0,s,2,0),i=l;i.setAlpha(n),gL.stroke(i),gL.line(e,t,e+r,t)}};class Rd{constructor(){this.useA=!1;let e=function(e){let t=parseInt(e.substr(0,8),16),r=parseInt(e.substr(8,8),16),s=parseInt(e.substr(16,8),16),l=parseInt(e.substr(24,8),16);return function(){let e=((t|=0)+(r|=0)|0)+(l|=0)|0;return l=l+1|0,t=r^r>>>9,r=(s|=0)+(s<<3)|0,s=(s=s<<21|s>>>11)+e|0,(e>>>0)/4294967296}};this.prngA=new e(tH.substr(2,32)),this.prngB=new e(tH.substr(34,32));for(let e=0;e<1e6;e+=2)this.prngA(),this.prngB()}rD(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}rN(e,t){return e+(t-e)*this.rD()}rI(e,t){return Math.floor(this.rN(e,t+1))}rC(e){return e[this.rI(0,e.length-1)]}}
The algorithm that was built for Getijde (Dutch for 'Tide') was meticulously designed. It's the result of spending most of the year cooped up inside four walls with a strong desire to escape. Countless hours were spent perfecting details to guarantee that each mint will be of high enough quality to be exhibited on screens and in print.
let cA,gL,hB,hC,hR,hS,lT,mS,R,sA,sC,eC,tC,sS,tP,wH,sW,aO=0,cR=0,cs=[],nB=0,oC=0,tH=tokenData.hash,wC=0,tA=[[[0,67,84],[358,100,46],[27,40,99],[20,8,14]],[[333,51,91],[333,74,88],[333,84,69],[52,99,87],[115,71,68]],[[196,48,79],[206,55,72],[206,58,56],[350,81,89],[38,30,97]],[[270,29,88],[259,42,82],[270,58,79],[189,37,92],[202,42,86]],[[178,50,57],[173,74,32],[173,64,15],[21,36,97],[13,11,100]],[[19,44,82],[30,26,93],[11,72,80],[197,23,56],[119,53,71]],[[71,61,57],[163,35,47],[213,10,34],[41,74,98],[215,75,77],[16,75,88]],[[41,25,55],[46,27,44],[51,80,19],[339,56,100],[54,62,97],[251,14,75]],[[46,48,100],[47,79,100],[47,100,64],[192,33,82],[359,40,100],[147,41,85]],[[153,64,47],[128,33,73],[153,70,32],[10,73,83],[31,21,95],[204,100,100]],[[280,1,93],[180,1,73],[221,74,87],[92,49,69],[51,94,80],[0,83,82]],[[27,40,99],[16,67,84],[358,100,46],[0,0,95],[80,10,91],[212,60,60]],[[60,28,51],[53,31,84],[53,62,29],[53,14,94],[17,34,85],[357,29,73]],[[360,84,70],[0,58,85],[0,86,47],[115,7,72],[37,26,93]],[[73,16,44],[66,5,73],[0,0,12],[32,57,87],[52,12,100],[28,80,74]],[[0,0,16],[0,0,16],[0,0,40],[0,0,90],[0,0,95],[0,0,100]],[[11,10,89],[22,13,61],[24,18,44],[354,86,79],[231,27,56]],[[26,16,100],[7,44,89],[0,30,69],[60,9,75],[60,15,65]]];function setup(){colorMode(HSB,360,100,100,1),noLoop(),R=new Rd,noiseSeed(tH),wH=windowHeight,sW=.75*wH,createCanvas(sW,wH),sCs(),background(sC),hB=R.rD()>.6,hC=R.rD()>.5,hR=R.rD()>.75,hS=R.rD()>.45,lT=R.rD()<.8?.25:.05,mS=R.rD()>.42,sA=R.rD()>.85,sS=R.rD()>.6?.015:.008,0==tP&&(mS=!1,sS=.008)}function draw(){stroke(tC);let e,t=ceil(.5*wH/10);if(mS){let t=color(R.rC(cA));if(hS&&dS(t),dM(.165*sW,0,TAU,t),hR&&dR(),hC){aO=R.rI(1,2);for(let e=0;e<aO;e++)gC();sHc()}hB&&dB(),e=.5*wH}else e=-t;for(let r=e;r<wH;r+=t)cW(r),wC++;dWb()}function cW(e){let t=R.rN(TAU,12*TAU),r=[],s=R.rN(.04*sW,.1*sW);R.rD()>.95&&(s=.025*sW);let l=sA?s:s*R.rN(.5,.8),n=sW/R.rN(1.2,2.5),i=.001*sW,o=TAU/n*i,c=[],a=[],h=t;for(let e=0;e<sW/i+2;e++)c.push(sin(h)*s),a.push(sin(h)*l),h+=o;beginShape(),strokeWeight(.005*sW),stroke(tC);let W=lerpColor(sC,eC,e/wH);fill(W),vertex(.05*-sW,wH),vertex(.05*-sW,wH),curveVertex(.05*-sW,e+c[0]);for(let t=0;t<c.length;t++)curveVertex(t*i,e+c[t]),wC>3&&R.rD()<25e-5&&dO(t*i,e),r.push(createVector(t*i,e+a[t]));vertex(sW+.05*sW,wH),vertex(sW+.05*sW,wH),endShape();for(let e=0;e<35;e++)cSw(e,r)}function cSw(e,t){beginShape(),noFill(),strokeWeight(.003*sW);for(let r=0;r<t.length;r++)curveVertex(t[r].x,t[r].y+sW*sS*e),R.rD()<lT&&(endShape(),beginShape());endShape()}function sCs(){tP=R.rI(0,tA.length-1),cA=tA[tP],sC=color(cA[0]),eC=color(cA[1]),tC=color(cA[2]),cA.splice(0,3)}function dO(e,t){let r=R.rN(.2*sW,.4*sW),s=e-r/2,l=t-r/2;s>0&&s<sW&&l>0&&l<wH&&(push(),strokeWeight(.005*sW),stroke(tC),fill(color(R.rC(cA))),circle(e,t-.01*wH,r),oC++,pop())}function gC(e){let t={br:[],bd:[],cn:[]},r=e?3:R.rI(3,6),s=e?R.rN(.05*sW,.75*sW):R.rN(.05*sW,.65*sW),l=e?R.rN(.05*wH,.35*wH):R.rN(.05*wH,.32*wH),n=[0,0],i=[[],[]],o=[];for(let c=0;c<r;c++){let r=R.rN(s-.02*sW,s+.022*sW),a=e?R.rN(.15*sW,.25*sW):R.rN(.15*sW,.4*sW);if(0!=c){let e=.03*wH,s=max([n[0],r])+e,i=min([n[1],r+a])-e,o=R.rN(s,i);t.cn.push([o,l+c*wH*.03-.015*wH,.02*wH,.02*wH])}n[0]=r,n[1]=r+a;let h=l+c*(.03*wH);t.br.push([r,h,a,.03*sW,.03*wH]),i[0].push(r),i[1].push(r+a),o.push(h),r+=R.rN(.03*-sW,.03*sW)+a}let c=min(i[0]),a=max(i[1]),h=min(o),W=max(o);t.bd.push(c,h,a-c,W-h+.02*wH),cs.length>0&&cs.forEach(e=>{cD(e.bd,t.bd)?cR<200&&(cR++,gC(!0)):cs.length<aO&&cs.push(t)}),0==cs.length&&cs.push(t)}function sHc(){for(let e=0;e<cs.length;e++){let t=cs[e];fill(tC),noStroke();for(let e=0;e<t.br.length;e++){let r=t.br[e];rect(r[0],r[1],r[2],r[3],r[4])}for(let e=0;e<t.cn.length;e++){let r=t.cn[e];rect(r[0],r[1],r[2],r[3])}}}function cD(e,t){let[r,s,l,n]=e,[i,o,c,a]=t;return r<i+c&&r+l>i&&s<o+a&&n+s>o}function dR(){let e=R.rI(100,180);for(let t=0;t<e;t++){push();let e=lightness(sC)>50?color(0,0,0,.3):color(0,0,100,.3);stroke(e);let t=R.rN(.05*-sW,.95*sW),r=R.rN(.05*-wH,.45*wH);line(t,r,t+.05*sW,r+.15*wH),pop()}}function dB(){noStroke(),nB=R.rI(1,4);let e=R.rD()<.5;for(let t=0;t<nB;t++){let t=createVector(R.rN(.25*sW,.75*sW),R.rN(.1*wH,.4*wH),R.rN(-.1,.15)),r=lerpColor(sC,color(0,50,0),.2),s=lerpColor(eC,color(0,50,0),.2);push(),translate(t.x,t.y),rotate(t.z),e&&scale(-1,1);let l=R.rI(0,2);scale(.0015*sW),0==l?(scale(1.15),fill(r),triangle(33,5,36,10,28,10),fill(s),triangle(14,15,24,15,20,0),fill(s),triangle(0,15,33,5,25,15),fill(r),triangle(16,15,26,15,22,0)):1==l?(fill(s),triangle(0,8,10,10,16,5),fill(r),triangle(10,10,20,10,16,2),fill(r),triangle(18,2,31,0,24,20),fill(s),triangle(16,2,28,0,23,20),fill(r),triangle(38,5,33,6,36,10),fill(s),triangle(31,0,38,5,28,8)):2==l&&(scale(.9),fill(r),triangle(0,4,15,4,15,15),fill(s),triangle(0,0,15,0,15,15),fill(r),triangle(15,0,15,30,25,10),fill(s),triangle(15,15,20,25,15,30),fill(s),triangle(25,10,25,0,20,5),fill(r),triangle(25,5,25,0,30,5)),pop()}}function dWb(){noFill(),strokeWeight(.02*sW),stroke(tC),rect(0,0,sW,wH)}function dS(e){let t=R.rI(200,350);noFill(),stroke(e),strokeWeight(.001*sW);for(let e=0;e<t;e++){let e=R.rN(.05*sW,.95*sW),t=R.rN(.05*wH,.4*wH);if(e>0&&e<sW&&t>0&&t<wH){let r=.003*sW;push(),blendMode(DIFFERENCE),rotate(R.rD()*TAU),line(e-r,t,e+r,t),line(e,t+r,e,t-r),pop()}}}const dM=(e,t,r,s)=>{let l=int(sW),n=int(.75*wH),i=createGraphics(l,n);gL=createGraphics(l,n),setGradient(0,0,l,n,s),i.translate(sW/2,.33*wH),i.beginShape(),i.fill(eC),i.noStroke();for(let s=t;s<r;s+=.05){let t=map(cos(s),-1,1,0,2),r=map(cos(s),-1,1,0,2),l=map(noise(t,r),0,1,2*e,1.1*e*2);i.vertex(l*cos(s),l*sin(s))}i.endShape(CLOSE);let o=createGraphics(l,n);(o=gL.get()).mask(i),image(i,0,0),image(o,0,0)},setGradient=(e,t,r,s,l)=>{for(let t=0;t<=s;t++){let n=map(1.2*t,0,s,2,0),i=l;i.setAlpha(n),gL.stroke(i),gL.line(e,t,e+r,t)}};class Rd{constructor(){this.useA=!1;let e=function(e){let t=parseInt(e.substr(0,8,16)),r=parseInt(e.substr(8,8,16)),s=parseInt(e.substr(16,8,16)),l=parseInt(e.substr(24,8,16));return function(){let e=((t|=0)+(r|=0)|0)+(l|=0)|0;return l=l+1|0,t=r^r>>>9,r=(s|=0)+(s<<3)|0,s=(s=s<<21|s>>>11)+e|0,(e>>>0)/4294967296}};this.prngA=new e(tH.substr(2,32)),this.prngB=new e(tH.substr(34,32));for(let e=0;e<1e6;e+=2)this.prngA(),this.prngB()}rD(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}rN(e,t){return e+(t-e)*this.rD()}rI(e,t){return Math.floor(this.rN(e,t+1))}rC(e){return e[this.rI(0,e.length-1)]}}
const hP=[],cA=[[[0,0,12],[0,0,78],[32,75,100],[135,57,48],[358,63,92],[196,65,67]],[[146,60,43],[146,49,58],[60,11,100],[14,27,100],[29,68,84]],[[41,38,81],[240,6,100],[200,38,69],[200,38,69],[338,34,87],[355,74,67],[96,31,54]],[[190,18,13],[190,24,43],[333,99,54],[342,58,92],[358,15,100]],[[218,37,25],[214,52,50],[202,30,85],[182,11,99],[12,68,93]],[[40,71,99],[40,47,99],[181,100,55],[187,88,51],[201,64,44]],[[95,13,88],[129,18,76],[172,34,66],[195,54,55],[194,49,24]],[[355,75,90],[105,5,98],[182,24,86],[203,56,62],[215,67,34]],[[14,29,88],[50,2,96],[38,6,74],[21,10,54],[25,17,27]],[[24,100,100],[0,0,92],[0,0,75],[211,65,65],[209,100,60]],[[74,18,84],[67,15,93],[52,12,100],[29,26,96],[6,58,97]],[[21,30,100],[12,36,100],[358,34,90],[348,28,71],[263,11,46]],[[195,91,30],[195,90,70],[164,97,84],[42,60,100],[346,70,94]],[[289,65,32],[328,63,58],[341,63,87],[30,61,92],[228,58,79],[224,49,93]],[[59,56,65],[39,18,89],[345,44,95],[71,41,73],[4,69,64],[176,10,63]],[[211,69,16],[219,60,33],[212,45,47],[75,2,88],[214,30,66]]];let cl=[],tD=tokenData.hash;for(let s=0;s<32;s++)hP.push(tD.slice(2+2*s,4+2*s));const dP=hP.map((s=>parseInt(s,16))),se=parseInt(tD.slice(0,16),16),rs=parseInt(tD.slice(16,31),15);let scl,bs,l,r,up,res,len,cols,rows,mA,mxA,pd,bg,sc,sF,sAm,sB,iv,scn,sSc,gr,w,h,grid=[];function setup(){noLoop(),colorMode(HSB,360,100,100,1);const s=windowWidth<windowHeight?windowWidth:windowHeight;createCanvas(s,s),w=10*round(s/10),h=10*round(s/10),noiseSeed(se),randomSeed(rs),sF=[grO,grO,grO,aR,bl,cls,rts,ros,sn,stp,rSp,gW,ol,ccA,bF,brs],qB=dP[0]>252,spB=dP[0]<252&&dP[0]>245,scn=sSc?"DS":mpr(1,0,sF.length-1),iv=!(dP[2]>30),cl=sCo(dP[3]),sB=!(dP[4]>70),bs=1e3,l=-1*w,up=-1*h,res=int(.1*w),scl=int(w/map(180,0,bs,0,w)),cols=180,rows=180;const t=sB?.022:.035;pd=mp(6,.06*w,.15*w),mA=mpr(7,80,150),len=mp(8,.01*w,w*t),miA=mp(9,0,6*PI),mxA=mp(10,miA,22*PI),gr=mp(11,.04,.07),sAm=int(30-map(mA,60,160,10,20));for(let s=0;s<cols;s++){grid.push([]);for(let t=0;t<rows;t++){const e=noise(.005*s,.005*t),o=map(e,0,1,miA,mxA);grid[s].push(o)}}}function draw(){background(bg),spB?(sF.splice(12,4),dS()):qB?(sF.splice(12,4),qS()):sF[scn]();const s=w>bs?bs:w;bT=createGraphics(s,s),bT.loadPixels();for(let t=0;t<s;t++)for(let e=0;e<s;e++){const s=map(noise(t/3,e/3,t*e/50)*random([0,50,100]),0,100,0,.8);bT.set(t,e,color(0,0,75,s))}bT.updatePixels(),tex=createGraphics(w,h),tex.image(bT,0,0,w,h),tex=createGraphics(w,h),tex.loadPixels();for(let s=0;s<w;s++)for(let t=0;t<h;t++){const e=map(noise(s/3,t/3,s*t/50)*random([0,50,100]),0,100,0,.75);tex.set(s,t,color(0,0,75,e))}tex.updatePixels(),push(),blendMode(MULTIPLY),image(tex,0,0),pop()}function sCo(s){const t=round(map(s,0,255,0,cA.length-1));let e=cA[t];return iv&&0!=t&&2!=t&&14!=t&&e.reverse(),bg=e[0],sc=e[1],e.splice(0,2),e}function gKs(){let s=round(random(sF.length-1));sF[s](),0==s||1==s||2==s?sF.splice(0,3):sF.splice(s,1)}function dS(){translate(-w/2.5,0),gKs(),translate(.85*w,0),gKs(),translate(-w/2.25,0)}function qS(){scale(.5),gKs(),translate(w,0),gKs(),translate(0,h),gKs(),translate(-w,0),gKs(),translate(0,-h),scale(2)}function ros(){let s=.3*w;fill(sc),noStroke(),ellipse(w/2,h/2,.15*w);let t=mpr(20,4,6);for(let e=0;e<TAU;e+=TAU/t)strokeWeight(.05*w),stroke(sc),noFill(),ellipse(w/2+s*sin(e),h/2+s*cos(e),.2*w),dF(mA/t,sAm)}function ol(){let s=mp(17,5,8);for(let t=0;t<s;t++)dF(mA,sAm)}function rSp(){let s=mpr(18,2,5),t=.09-map(s,2,6,.03,.055),e=.15*w,o=ceil((w-2*e)/s);stroke(sc),strokeWeight(w*t),dF(mA/2,sAm);for(let s=e;s<w-e;s+=o)for(let t=e;t<h-e;t+=o)0==floor(random(2))?line(s,t,s+o,t+o):line(s,t+o,s+o,t);dF(mA/2,sAm)}function sn(){const s=360/mpr(21,5,10),t=.5*w;dF(mA/2,sAm);for(let e=0;e<360;e+=s){const s=cos(radians(e))*(.4*w),o=sin(radians(e))*(.4*w);stroke(sc),strokeWeight(.06*w),line(s+t,o+t,t,t)}dF(mA/2,sAm)}function bF(){const s=.8*w,t=.05*s,e=(s-3*t)/4,o=dP[22]<220;for(let s=0;s<4;s++){o?(fill(sc),noStroke()):(noFill(),strokeWeight(.03*w),stroke(sc));rect(.1*w+e*s+t*s,(1==s||3==s?.025*w:.025*w*-1)+.2*h,e,.6*h),dF(mA/4,sAm)}}function rts(){const s=mpr(23,2,4),t=(.8*w-.1*w)/s/w;for(let e=0;e<s;e++){const o=w*(.15+e*t*1.2);rectMode(CENTER),stroke(sc),strokeWeight(w*(.03+.005*e)),noFill(),rect(w/2,h/2,o,o),dF(mA/s,sAm)}}function cls(){noStroke(),fill(sc);const s=mpr(24,2,4),t=.01-map(s,2,4,.003,.005),e=(.5*w-.1*w)/s/w;circle(w/2,h/2,.08*w);for(let o=0;o<s;o++)dD(w*(.11+o*e),w*(.025+o*t)),dF(mA/s,sAm)}function grO(){const s=dP[25]>120,t=dP[27]>120,e=mpr(27,4,6),o=.05*w,r=(.8*w-o*(e-1))/e;dP[26]>120?(fill(sc),noStroke()):(strokeWeight(.03*w),stroke(sc),noFill());for(let n=0;n<e;n++)for(let l=0;l<e;l++){let c=n%2==0?.05*h:-.05*h;c=t?c:0,s?rect(.1*w+o*n+r*n,c+.1*h+o*l+r*l,r,r):ellipse(.1*w+o*n+r*n+r/2,c+.1*h+o*l+r*l+r/2,r,r),dF(mA/(e*e),sAm)}}function aR(){const s=mpr(27,2,6),t=.8*w/s,e=.1*w-map(s,2,6,.02*w,.055*w);noFill(),strokeCap(SQUARE),strokeWeight(e),stroke(sc);for(let e=0;e<s;e++){const o=random(0,TAU),r=random(o+PI/2,o+TAU);arc(.5*w,.5*h,t+t*e,t+t*e,o,r),dF(mA/s,sAm)}}function ccA(){dP[30]<200?(noStroke(),fill(sc)):(noFill(),strokeWeight(.05*w),stroke(sc)),dF(.25*mA,10);for(let s=0;s<100;s+=25)push(),rotate(radians(s)),circle(w/2,0,.2*w),pop();dF(.25*mA,sAm);for(let s=0;s<120;s+=15)push(),rotate(radians(s)),circle(w,0,.2*w),pop();dF(.25*mA,sAm)}function gW(){const s=mpr(31,2,4),t=.09-map(s,2,4,.03,.06),e=.15*w,o=(w-2*e)/s;strokeWeight(w*t),stroke(sc),dF(mA/2,sAm);for(let t=0;t<s+1;t++)line(e+o*t,e,e+o*t,h-e),line(e,e+o*t,h-e,e+o*t);dF(mA/2,sAm)}function stp(){strokeWeight(.08*w),stroke(sc);const s=mp(28,1,30);for(let t=0;t<3;t++)if(s<10)line(.2*w+t*(.2*w),.15*h,.35*w+t*(.2*w),.85*h),dF(mA/3,sAm);else for(let e=0;e<=s;e++)point(lerp(.2*w+t*(.2*w),.3*w+t*(.2*w),e/s)+s,lerp(.15*h,.85*h,e/s)+s),dF(mA/(3*s),sAm)}function brs(){let s=mpr(29,3,6),t=dP[29]<230,e=.6*h/s;for(let o=0;o<s;o++){let r=o%2==0?.08:.04;t?(fill(sc),noStroke()):(noFill(),strokeWeight(.02*w),stroke(sc));let n=h*r;rect(.1*w,.2*h+o*e+e/2-n/2,w-.2*w,n),dF(mA/s,sAm)}}function bl(){const s=dP[19]<125;function t(s){return s?.25*w:.75*w}fill(sc),noStroke(),dF(.25*mA,sAm),circle(t(s),.25*w,.25*w),dF(.25*mA,sAm),dD(.2*w,.07*w),dF(.25*mA,sAm),circle(t(!s),.75*w,.25*w),dF(.25*mA,sAm)}function dD(s,t){noFill(),stroke(sc),strokeWeight(t),circle(w/2,h/2,2*s)}function dF(s,t){for(let e=0;e<s;e++){dC(t,map(random(0,bs),0,bs,pd,w-pd),map(random(0,bs),0,bs,pd,h-pd))}}function dC(s,t,e){let o=t,r=e,n=random(cl);for(let t=0;t<s;t++){let e=int((o-l)/res*scl),c=int((r-up)/res*scl),i=grid[e][c],m=abs(t*(w*gr)-s*(.03*w)/2);o<w-pd&&o>pd&&r<h-pd&&r>pd&&(push(),noStroke(),fill(n[0]+2*t,n[1]+t,n[2]-2*t),translate(o,r),rotate(i),sB?circle(0,0,.02*w+.01*m):rect(0,0,.03*w,.012*w+.01*m),pop(),o+=len*cos(i),r+=len*sin(i))}}function mpr(s,t,e){return round(map(dP[s],0,255,t,e))}function mp(s,t,e){return map(dP[s],0,255,t,e)}
const hP=[],cA=[[[0,0,12],[0,0,78],[32,75,100],[135,57,48],[358,63,92],[196,65,67]],[[146,60,43],[146,49,58],[60,11,100],[14,27,100],[29,68,84]],[[41,38,81],[240,6,100],[200,38,69],[200,38,69],[338,34,87],[355,74,67],[96,31,54]],[[190,18,13],[190,24,43],[333,99,54],[342,58,92],[358,15,100]],[[218,37,25],[214,52,50],[202,30,85],[182,11,99],[12,68,93]],[[40,71,99],[40,47,99],[181,100,55],[187,88,51],[201,64,44]],[[95,13,88],[129,18,76],[172,34,66],[195,54,55],[194,49,24]],[[355,75,90],[105,5,98],[182,24,86],[203,56,62],[215,67,34]],[[14,29,88],[50,2,96],[38,6,74],[21,10,54],[25,17,27]],[[24,100,100],[0,0,92],[0,0,75],[211,65,65],[209,100,60]],[[74,18,84],[67,15,93],[52,12,100],[29,26,96],[6,58,97]],[[21,30,100],[12,36,100],[358,34,90],[348,28,71],[263,11,46]],[[195,91,30],[195,90,70],[164,97,84],[42,60,100],[346,70,94]],[[211,69,16],[219,60,33],[212,45,47],[75,2,88],[214,30,66]],[[289,65,32],[328,63,58],[341,63,87],[30,61,92],[228,58,79],[224,49,93]],[[59,56,65],[39,18,89],[345,44,95],[71,41,73],[4,69,64],[176,10,63]]];let cl=[];for(let s=0;s<32;s++)hP.push(tokenData.hash.slice(2+2*s,4+2*s));const dP=hP.map((s=>parseInt(s,16))),se=parseInt(tokenData.hash.slice(0,16),16),rs=parseInt(tokenData.hash.slice(16,31),15);let scl,bs,l,r,up,res,len,cols,rows,mA,mxA,pd,bg,sc,sF,sAm,sB,iv,scn,sSc,gr,w,h,grid=[];function setup(){noLoop(),colorMode(HSB,360,100,100,1);const s=windowWidth<windowHeight?windowWidth:windowHeight;createCanvas(s,s),w=s,h=s,noiseSeed(se),randomSeed(rs),sF=[grO,grO,grO,aR,bl,cls,rts,ros,sn,stp,rSp,gW,ccA,ol,bF,brs],qB=dP[0]>252,spB=dP[0]<252&&dP[0]>245,scn=sSc?"DS":mpr(1,0,sF.length-1),iv=!(dP[2]>30),cl=sCo(dP[3]),sB=!(dP[4]>70),bs=1e3,l=-1*w,up=-1*h,res=int(.1*w),scl=int(w/map(180,0,bs,0,w)),cols=180,rows=180;const t=sB?.022:.035;pd=mp(6,.06*w,.15*w),mA=mpr(7,80,150),len=mp(8,.01*w,w*t),miA=mp(9,0,6*PI),mxA=mp(10,miA,22*PI),gr=mp(11,.04,.07),sAm=int(30-map(mA,60,160,10,20));for(let s=0;s<cols;s++){grid.push([]);for(let t=0;t<rows;t++){const e=noise(.005*s,.005*t),o=map(e,0,1,miA,mxA);grid[s].push(o)}}}function draw(){background(bg),spB?(sF.splice(12,4),dS()):qB?(sF.splice(12,4),qS()):sF[scn]();const s=w>bs?bs:w;bT=createGraphics(s,s),bT.loadPixels();for(let t=0;t<s;t++)for(let e=0;e<s;e++){const s=map(noise(t/3,e/3,t*e/50)*random([0,50,100]),0,100,0,.8);bT.set(t,e,color(0,0,75,s))}bT.updatePixels(),tex=createGraphics(w,h),tex.image(bT,0,0,w,h),tex=createGraphics(w,h),tex.loadPixels();for(let s=0;s<w;s++)for(let t=0;t<h;t++){const e=map(noise(s/3,t/3,s*t/50)*random([0,50,100]),0,100,0,.75);tex.set(s,t,color(0,0,75,e))}tex.updatePixels(),push(),blendMode(MULTIPLY),image(tex,0,0),pop()}function sCo(s){const t=round(map(s,0,255,0,cA.length-1));let e=cA[t];return iv&&0!=t&&2!=t&&14!=t&&e.reverse(),bg=e[0],sc=e[1],e.splice(0,2),e}function gKs(){let s=round(random(sF.length-1));sF[s](),sF.splice(s,1)}function dS(){translate(-w/2.5,0),gKs(),translate(.85*w,0),gKs(),translate(-w/2.25,0)}function qS(){scale(.5),gKs(),translate(w,0),gKs(),translate(0,h),gKs(),translate(-w,0),gKs(),translate(0,-h),scale(2)}function ros(){let s=.3*w;fill(sc),noStroke(),ellipse(w/2,h/2,.15*w);let t=mpr(20,4,6);for(let e=0;e<TAU;e+=TAU/t)strokeWeight(.05*w),stroke(sc),noFill(),ellipse(w/2+s*sin(e),h/2+s*cos(e),.2*w),dF(mA/t,sAm)}function ol(){let s=mp(17,5,8);for(let t=0;t<s;t++)dF(mA,sAm)}function rSp(){let s=mpr(18,2,5),t=.09-map(s,2,6,.03,.055),e=.15*w,o=ceil((w-2*e)/s);stroke(sc),strokeWeight(w*t),dF(mA/2,sAm);for(let s=e;s<w-e;s+=o)for(let t=e;t<h-e;t+=o)0==floor(random(2))?line(s,t,s+o,t+o):line(s,t+o,s+o,t);dF(mA/2,sAm)}function sn(){const s=360/mpr(21,5,10),t=.5*w;dF(mA/2,sAm);for(let e=0;e<360;e+=s){const s=cos(radians(e))*(.4*w),o=sin(radians(e))*(.4*w);stroke(sc),strokeWeight(.06*w),line(s+t,o+t,t,t)}dF(mA/2,sAm)}function bF(){const s=.8*w,t=.05*s,e=(s-3*t)/4,o=dP[22]<220;for(let s=0;s<4;s++){o?(fill(sc),noStroke()):(noFill(),strokeWeight(.03*w),stroke(sc));rect(.1*w+e*s+t*s,(1==s||3==s?.025*w:.025*w*-1)+.2*h,e,.6*h),dF(mA/4,sAm)}}function rts(){const s=mpr(23,2,4),t=(.8*w-.1*w)/s/w;for(let e=0;e<s;e++){const o=w*(.15+e*t*1.2);rectMode(CENTER),stroke(sc),strokeWeight(w*(.03+.005*e)),noFill(),rect(w/2,h/2,o,o),dF(mA/s,sAm)}}function cls(){noStroke(),fill(sc);const s=mpr(24,2,4),t=.01-map(s,2,4,.003,.005),e=(.5*w-.1*w)/s/w;circle(w/2,h/2,.08*w);for(let o=0;o<s;o++)dD(w*(.11+o*e),w*(.025+o*t)),dF(mA/s,sAm)}function grO(){const s=dP[25]>120,t=dP[27]>120,e=mpr(27,4,6),o=.05*w,r=(.8*w-o*(e-1))/e;dP[26]>120?(fill(sc),noStroke()):(strokeWeight(.03*w),stroke(sc),noFill());for(let n=0;n<e;n++)for(let l=0;l<e;l++){let c=n%2==0?.05*h:-.05*h;c=t?c:0,s?rect(.1*w+o*n+r*n,c+.1*h+o*l+r*l,r,r):ellipse(.1*w+o*n+r*n+r/2,c+.1*h+o*l+r*l+r/2,r,r),dF(mA/(e*e),sAm)}}function aR(){const s=mpr(27,2,6),t=.8*w/s,e=.1*w-map(s,2,6,.02*w,.055*w);noFill(),strokeCap(SQUARE),strokeWeight(e),stroke(sc);for(let e=0;e<s;e++){const o=random(0,TAU),r=random(o+PI/2,o+TAU);arc(.5*w,.5*h,t+t*e,t+t*e,o,r),dF(mA/s,sAm)}}function ccA(){dP[30]<200?(noStroke(),fill(sc)):(noFill(),strokeWeight(.05*w),stroke(sc)),dF(.25*mA,10);for(let s=0;s<100;s+=25)push(),rotate(radians(s)),circle(w/2,0,.2*w),pop();dF(.25*mA,sAm);for(let s=0;s<120;s+=15)push(),rotate(radians(s)),circle(w,0,.2*w),pop();dF(.25*mA,sAm)}function gW(){const s=mpr(31,2,4),t=.09-map(s,2,4,.03,.06),e=.15*w,o=(w-2*e)/s;strokeWeight(w*t),stroke(sc),dF(mA/2,sAm);for(let t=0;t<s+1;t++)line(e+o*t,e,e+o*t,h-e),line(e,e+o*t,h-e,e+o*t);dF(mA/2,sAm)}function stp(){strokeWeight(.08*w),stroke(sc);const s=mp(28,1,30);for(let t=0;t<3;t++)if(s<10)line(.2*w+t*(.2*w),.15*h,.35*w+t*(.2*w),.85*h),dF(mA/3,sAm);else for(let e=0;e<=s;e++)point(lerp(.2*w+t*(.2*w),.3*w+t*(.2*w),e/s)+s,lerp(.15*h,.85*h,e/s)+s),dF(mA/(3*s),sAm)}function brs(){let s=mpr(29,3,6),t=dP[29]<230,e=.6*h/s;for(let o=0;o<s;o++){let r=o%2==0?.08:.04;t?(fill(sc),noStroke()):(noFill(),strokeWeight(.02*w),stroke(sc));let n=h*r;rect(.1*w,.2*h+o*e+e/2-n/2,w-.2*w,n),dF(mA/s,sAm)}}function bl(){const s=dP[19]<125;function t(s){return s?.25*w:.75*w}fill(sc),noStroke(),dF(.25*mA,sAm),circle(t(s),.25*w,.25*w),dF(.25*mA,sAm),dD(.2*w,.07*w),dF(.25*mA,sAm),circle(t(!s),.75*w,.25*w),dF(.25*mA,sAm)}function dD(s,t){noFill(),stroke(sc),strokeWeight(t),circle(w/2,h/2,2*s)}function dF(s,t){for(let e=0;e<s;e++){dC(t,map(random(0,bs),0,bs,pd,w-pd),map(random(0,bs),0,bs,pd,h-pd))}}function dC(s,t,e){let o=t,r=e,n=random(cl);for(let t=0;t<s;t++){let e=int((o-l)/res*scl),c=int((r-up)/res*scl),i=grid[e][c],m=abs(t*(w*gr)-s*(.03*w)/2);o<w-pd&&o>pd&&r<h-pd&&r>pd&&(push(),noStroke(),fill(n[0]+2*t,n[1]+t,n[2]-2*t),translate(o,r),rotate(i),sB?circle(0,0,.02*w+.01*m):rect(0,0,.03*w,.012*w+.01*m),pop(),o+=len*cos(i),r+=len*sin(i))}}function mpr(s,t,e){return round(map(dP[s],0,255,t,e))}function mp(s,t,e){return map(dP[s],0,255,t,e)}
Stroming is a generative abstract project that wraps colorful streams around bold geometric shapes. The transaction hash is used to assign unique attributes to each Stroming, such as scene selection, colorscheme, intensity, modifiers and more.