0xf049ed4d…72f3sent to0x99a9b7c1…b069·#15,844,757·view on Etherscan
class Random{constructor(){this.useA=false;let t=function(t){let e=parseInt(t.substr(0,8),16);let n=parseInt(t.substr(8,8),16);let o=parseInt(t.substr(16,8),16);let r=parseInt(t.substr(24,8),16);return function(){e|=0;n|=0;o|=0;r|=0;let t=(e+n|0)+r|0;r=r+1|0;e=n^n>>>9;n=o+(o<<3)|0;o=o<<21|o>>>11;o=o+t|0;return(t>>>0)/4294967296}};this.prngA=new t(tokenData.hash.substr(2,32));this.prngB=new t(tokenData.hash.substr(34,32));for(let t=0;t<1e6;t+=2){this.prngA();this.prngB()}}random_dec(){this.useA=!this.useA;return this.useA?this.prngA():this.prngB()}random_num(t,e){return t+(e-t)*this.random_dec()}random_int(t,e){return Math.floor(this.random_num(t,e+1))}random_bool(t){return this.random_dec()<t}random_choice(t){return t[this.random_int(0,t.length-1)]}}function floorTo(t,e){return Math.floor(t/e)*e}const a=new Random;let s,f;let u=[];let i=[];let d=[];let m=[];let o=[];let c=300;let _=100;let t=parseInt(tokenData.tokenId)%1e6;let e=t%2;let h=t===0;let n=t===101;let P=e?.24:.14;let p=a.random_bool(.8)?.04:.08;let r=a.random_bool(.1);let w=h||n;let l=w?.1:a.random_choice([2,.5,.2,.1,.05,.02,.001]);let b=w?.1:r?.38:.1;let I=w?.1:e?.15:.1;let A=w?.91:e?.9:.85;let g=h?.1:.01;let R=a.random_bool(.4);let y=floorTo(a.random_num(b,.7),p);let x=floorTo(a.random_num(y,.8),p);if(x===y){x=y+p}let H=e?.92:.08;let L=w||r?false:a.random_bool(.3);let F=L&&a.random_bool(.2);let k=1;let D=0;let T=w?false:a.random_bool(.05);let W=h?true:a.random_bool(.2);let q=w?false:a.random_bool(.3);let X=e?.94:.06;let B=w?false:a.random_bool(.3);let M=w?false:a.random_bool(.4);function setup(){if(windowWidth<=windowHeight/sqrt(2)){s=windowWidth;f=windowWidth*sqrt(2)}else{s=windowHeight/sqrt(2);f=windowHeight}createCanvas(s,f);pixelDensity(5);background(w?"#0f0f0f":"#fafafa");fill(w?"#fafafa":"#0f0f0f");noStroke();illustrationLimit=F?1e4:5e3;illustrationPointsDistance=F?.005:.001;for(let t=0;t<illustrationLimit;t++){if(F){i.push(a.random_num(-PI,PI))}else{i.push(a.random_num(-l,l))}}if(L){let e=0;let n=.5;let o=.5;let r=a.random_num(0,TWO_PI);let l=i[e];e++;for(let t=0;t<illustrationLimit;t++){if(t%25===0){l=i[e];e++}r+=l;m.push({x:n,y:o});if(D<o){D=o}if(k>o){k=o}n+=cos(r)*illustrationPointsDistance;o+=sin(r)*illustrationPointsDistance;if(o<.1||o>.88||n<I||n>A){break}}if(k>b+p){addPoints(d,b,k-p)}startingPoint=floorTo(D-.08,.04)+.14;if(startingPoint<.88){addPoints(d,startingPoint,.88)}}if(!L){if(r&&!h&&!n){addRowPoints(d,I,A,.2,g/2)}addPoints(d,b,n?.5:.88)}if(q){for(let t=y;t<x;t+=p/4){d.push({x:X-.01,y:t,a:a.random_num(-HALF_PI,HALF_PI)});d.push({x:X,y:t,a:a.random_num(-HALF_PI,HALF_PI)});d.push({x:X+.01,y:t,a:a.random_num(-HALF_PI,HALF_PI)})}}if(B){let e=M?.02:1;for(let t=.9;t<.94;t+=e){addRowPoints(d,I+.04,A-.04,t,g/4)}}if(R&&!h&&!L&&!n){currentX=H;let e=a.random_num(-1e-4,1e-4);let n=0;for(let t=y;t<x;t+=5e-4){if(n%40===0){e=a.random_num(-1e-4,1e-4)}if(l>.001){currentX+=e}if(currentX<H-.01){currentX=H-.01}if(currentX>H+.01){currentX=H+.01}o.push({x:currentX,y:t});n++}}if(!w){d.push({x:e?.9:.1,y:.94,a:a.random_num(-HALF_PI,HALF_PI)})}for(let t=0;t<d.length*c;t++){if(W){l=a.random_choice([.5,.1,.05,.001])}u.push(a.random_num(-l,l))}if(T){write(.0015,255)}write(0,255)}function addPoints(e,n,o){for(let t=n;t<o;t+=p){addRowPoints(e,I,A,t,g/2)}}function addRowPoints(e,n,o,r,l){let i=false;for(let t=n;t<o;t+=l){if(a.random_num(0,1)>.8&&t>P&&!i&&!h){t+=.01;i=true}else{i=false}if(t>.3&&a.random_num(0,1)>.99&&!h){break}e.push({x:t,y:r,a:a.random_num(-HALF_PI,HALF_PI)})}}function write(l,t){cl=color(w?"#fafafa":"#0f0f0f");cl.setAlpha(t);fill(cl);for(const a of m){circle(a.x*s,(a.y+l)*f,.002*s)}for(const a of o){circle(a.x*s,(a.y+l)*f,.0012*s)}let i=0;for(const a of d){if(a.y===.9||a.y===.92){c=50}else{c=300}let e=a.x;let n=a.y;let o=a.a;let r=u[i];i++;for(let t=0;t<c;t++){if(t%_===0){r=u[i];i++}o+=r;circle(e*s,(n+l)*f,.001*s);e+=cos(o)*1e-4;n+=sin(o)*1e-4;if(n<a.y-p*.4||n>a.y+p*.4||e<a.x-g||e>a.x+g){break}}}}