memoscan
← all memos

Memo 0x12df8308…50bdaa on Ethereum

<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,shrink-to-fit=0,user-scalable=no,minimum-scale=1,maximum-scale=1"><head> <title>Valuma</title> <script language="javascript" type="text/javascript" src="https://cdn.jsdelivr.net/npm/p5@1.3.1/lib/p5.js"></script> <style>body{background: #000; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; flex-direction: row; margin: 0}canvas{margin: auto; display: block; box-shadow: 0 2px 12px -2px rgba(0, 0, 0, .15)}</style></head><body> <script>const hash="{{hash}}"; let objects,crl=[["#444444","#222222","#333333","#555555","#888888","#777777","#00ACC1","#CCCCCC"],["#00B5F1","#00BFFF","#1BC5FF","#38CDFF","#55D3FF","#00B5F1","#00BFFF","#1BC5FF"],["#540AFF","#4408CF","#34069E","#24046E","#14023D","#330AFF","#1A0582","#482BB3"],["#0B039E","#0E04CF","#042DCF","#02186E","#010D3D","#1745FF","#354FB8","#141E45"],["#B300FF","#9100CF","#6F009E","#4D006E","#2B003D","#5D0ECC","#49198C","#1C0A36"],["#00D1ED","#00A9BF","#008394","#005A66","#00171A","#2C3436","#DDEDFD","#008DDE"],["#CDB1FA","#D9C5F9","#6DC6FB","#6DFBD3","#B1DBED","#9F69F5","#AE81F7","#FBA26D"],["#cBc0ce","#47B7EE","#ee70da","#5ce3c3","#7b407e","#a9ecdc","#E59C2C","#8be2f2"],["#f74ad1","#f75174","#4af7ec","#826bff","#cb82ff","#ffe682","#f75e4a","#ff82b6"],["#0A0A0A","#161C26","#CED2D9","#FBECE1","#0A0A0A","#161C26","#FC7203","#CED2D9"],["#75CDE1","#020303","#FBFEFF","#9D3AE1","#E13A52","#75CDE1","#6d289d","#3abbe1"],["#10A0BF","#4974a5","#CE1836","#F85931","#3FB9F9","#F85931","#31D0F8","#EDB92E"],["#5C7079","#7D8D9D","#94C7A8","#F9645D","#F8E9CC","#5C7079","#F8E9CC","#94C7A8"],["#1F1F1F","#363636","#E8175D","#474747","#A10A3C","#A8A7A7","#CC527A","#E8175D"],["#26251C","#A0E8B7","#EB0A44","#F2643D","#F2A73D","#26251C","#EB0A44","#F2643D"],["#EFEECC","#0AABBA","#FE0557","#400403","#0AABBA","#EFEECC","#FE8B05","#FE0557"],["#979D9A","#030D4F","#FB0C06","#CEECEF","#E7EDEA","#FFC52C","#FB0C06","#FFC52C"],["#9DBCBC","#A0C0CF","#FF370F","#332717","#6BACBF","#9DBCBC","#F0F0AF","#FF370F"],["#E4DED0","#ABCCBD","#7DBEB8","#181619","#E32F21","#E4DED0","#ABCCBD","#7DBEB8"],["#1f1f1f","#02F7E3","#ff0318","#ff2d03","#ff6c03","#ffab03","#473936","#02B2F2"],["#3D0702","#CF1908","#9E1306","#6E0D04","#EB1C09","#AD2D21","#D92B2B","#8A1106"],["#1E1F1D","#35323D","#3A3647","#DBD1FF","#FF6303","#87F4FF","#383838","#3A3647"]],crl2=[["#444444","#222222","#333333","#555555","#888888","#777777","#111111","#ACACAC"],["#101010","#202020","#444444","#BBBBBB","#EFEFEF","#353535","#FAFAFA","#ABABAB"],["#D4D4D4","#0A0A0A","#1F1F1F","#FAFAFA","#404040","#353535","#F0F0F0","#0F0F0F"],["#0B0B0B","#EFEFEF","#333333","#F2F2F2","#4E4E4E","#E5E5E5","#040404","#5F5F5F"]],crlnames=["Grayscale+","LightBlue","UltraViolet","UltraBlue","Purple Haze","Cyanic","Toy Store","80s","Broken Rainbow","Gray&Orange","CPR Combo","Santa Cruz","Muted Channel","Gray&Red","Lava Lamp","Hot&Cold","Emblem","Cloudy Lava","CyanRed","Splash Wave","Deep Red","GrayOrchid"],crlnames2=["Grayscale","Grayscale 2","Grayscale 3","Grayscale 4"];window.METADATA={};let sT=[],Vlist=[],Vlist2=[],Flist=[],sL=[[0,1,2,3,4,6,5,7],[1,3,5,7,6,4,2],[3,4,7,1,0,2,6,5],[6,5,7,4,1,0,3,3,6],[2,3,7,0,1,7,4,5,6],[2,3,0,7,2,4,5,6,5,7,4,1,0,2],[4,1,2,7,5,6,1,3]];class Random{constructor(i){this.s=i}d(){return this.s^=this.s<<13,this.s^=this.s>>17,this.s^=this.s<<5,(this.s<0?1+~this.s:this.s)%1e3/1e3}n(i,l){return i+(l-i)*this.d()}i(i,l){return Math.floor(this.n(i,l+1))}}let D_S=2e3,W2=Math.round(window.innerHeight/1.41414141414),H2=window.innerHeight,W=Math.round(1685.8285714302574),H=2384,DIM=Math.min(W,H),DIM2=Math.min(W2,H2),M=DIM/D_S,M2=DIM2/DIM,seed=parseInt(hash.slice(0,16),16),R=new Random(seed);for(let i=0;i<1e5;i++){R.n()}let r=R.n(0,255),g=R.n(0,255),b=R.n(0,255),B=R.n(4,15),rE=R.i(0,9),aM=R.i(0,9),bgdrop=R.i(1,14),bgcol=R.i(1,10),cS=R.i(0,14),bW=R.i(0,1),eL=R.i(0,4),dD=R.n(1.2,2.5),crllength=crl.length,vs=R.i(0,crllength-1),crl2length=crl2.length,vs2=R.i(0,crl2length-1),mC=R.i(0,29),P=crl[vs],P2=crl2[vs2],sLL=sL.length,sS=R.i(0,sLL-1),sR=R.i(0,1),sV=sL[sS],sq=sV.length,sC=0,cW=R.n(0,6),cH=R.n(0,6),num=R.i(850,2400),tS=R.i(0,10),xI=R.i(0,14),sPy=R.i(0,60),mpI=R.i(0,9),cA=R.n(0,2),mI=R.i(700,1420),mB=R.i(20,300),nG=R.i(0,4),pL=R.i(0,199),lR=0,bL=R.i(20,200),rR=1,mR=R.i(2,5),sM=1,nm=R.n(0,4),particles=[num],lC=0,lE=0,nC=R.i(1,6),nR=R.i(1,6),check=0,fR=0,aG=R.i(0,5),aD=R.i(0,6),aD2=R.i(0,6),sinbg=R.i(0,11),lA=R.i(0,4),rS=R.i(0,6),sG=R.i(0,14);const zsp=2;let wb=R.i(0,2),bgrad=R.i(0,15),tW=R.n(1.1,1.4),tusl=R.n(3,5),jJ=R.i(0,14),noSlide=R.i(0,19),randBoxy=R.i(0,14);function setup(){let i=hour(),l=minute(),t=second();sT.push(i),sT.push(l),sT.push(t),print("render started at "+i+":"+l+":"+t),smooth(),createCanvas(W2,H2),ff=createGraphics(W,H),noStroke(),print(num*mI*mR+" objects");for(let i=0;i<num;i++){let l=createVector(R.n(W/15,W-W/15),R.n(H/20,H-H/20),2),t=0,e=createVector(cos(t),sin(t)),o=R.n(1.8,3);tS<=1&&(o=R.n(1.5,2)),sPy<=1?o=R.n(2.5,8):2==sPy&&(sM=4),particles[i]=new Particle(l,e,o)}ff.noStroke(),fill(0);let e=R.i(0,1);P<9&&(e=R.i(0,5));let o=R.i(0,1),s=color(P[e]),n=color(P[o]),c=R.n(.7,.9),a=R.n(.3,.5),h=color(0,0,0);bgcol<=3&&(h=color(255,255,255)),window.METADATA.Background=0==pL?"Plotter Light":pL<=5?"Plotter Dark":pL<=7?"Grayscale Dark":pL<=9?"Grayscale Light":bgcol<=3?"Light":"Dark",window.METADATA.Layers=mR.toString(),window.METADATA["Angle/speed mixer"]=aM<=5?"Mixer 1":aM<=7?"Mixer 2":"Mixer 3",window.METADATA["Number of particles"]=num<900?"Less":num<1800?"More":"Even More",window.METADATA["Iteration per layer"]=mI<800?"Low":mI<1600?"Medium":"High",window.METADATA["Particle spawn"]=rS<=3?"Enabled":"Disabled",window.METADATA["Stroke weight"]=cA<=1?B<5?"Small":B<15?"Medium":"Large":B+cW+cH<20?"Medium":B+cW+cH<30?"Large":"XtraLarge",window.METADATA["Top layer tint"]=mR>2&&mI<800&&1==wb?1==bW?"Darken":"Lighten":"None",window.METADATA["Stroke coloring"]=0==noSlide&&cA>1&&tS<=1||0==noSlide&&cA<=1?"Solid":"Sliding",window.METADATA["Stroke type"]=0==randBoxy?"Fuzzy":"Solid";let f=lerpColor(s,h,c),A=lerpColor(n,h,a),F=lerpColor(s,h,a);if(0==pL||8==pL||9==pL?(f=color(R.i(120,230)),A=color(R.i(140,250))):pL<=7&&(f=color(R.i(15,110)),A=color(R.i(5,50))),noStroke(),fill(f),rect(0,0,W2,H2),fill(A),bgdrop>2&&bgrad>2)for(let i=0;i<H2-H2/10;i++){let l=lerpColor(A,F,i/(H2-H2/10));fill(l),rect(W2/15,i+H2/20,W2-W2/7.5,1)}else bgdrop>2&&rect(W2/15,H2/20,W2-W2/7.5,H2-H2/10);window.METADATA["Background box"]=bgdrop>2&&bgrad>2&&e!=o?"Gradient":bgdrop>2?"Solid":"Absent";for(let i=0;i<nC;i++)for(let l=0;l<nR;l++){let t=R.i(0,255),e=R.i(0,255),o=R.i(0,255);R.i(0,255),R.i(0,255),R.i(0,255);ff.fill(e,t,o),ff.rect(i*(W/nC),l*(H/nR),W/nC,H/nR)}if(0==nG){Flist.push("Gradient");for(let i=0;i<H;i++){let l=color(r,b,g),t=color(b/2,g/2,r/2),e=lerpColor(l,t,i/H/4);ff.fill(e),ff.rect(W/2-W/nC,i,W/nC*2,1)}}if(0==jJ){Flist.push("Nested rectangles");for(let i=1;i<nC*nR;i++)r4=R.i(0,255),g4=R.i(0,255),b4=R.i(0,255),ff.rectMode(CENTER),ff.fill(r4,g4,b4),ff.rect(W/2,H/2,W-W/20*i,H-H/20*i)}for(let i=0;i<mB;i++){let l=R.n(60,255),t=R.n(60,255),e=R.n(60,255);ff.noStroke(),ff.fill(l,t,e);let o=R.n(0,W),s=R.n(0,H),n=R.n(450,W/3),c=R.n(450,W/3),a=R.n(0,55);R.n(0,W);if(ff.push(),1==lA?(ff.angleMode(DEGREES),1==aD?ff.rotate(45*round(a)):ff.rotate(22.5*round(a))):ff.rotate(a),window.METADATA["Flow lock"]=1==lA&&1==aD?"45 degrees":1==lA&&1!=aD?"22.5 degrees":"Unlocked",window.METADATA["Angle lock"]=0!=aG?"Unlocked":0==aD2?"45 degrees":"22.5 degrees",1==sinbg&&mR<2?(ff.rect(sin(r*i*100)*i+W/3,tan(g*i*10)+W/i,n,10*c),Flist.push("Fan")):ff.rect(o,s,n,c),ff.pop(),1==cS){Flist.push("Circular");let o=color(l,t,e),r=color(t,e,l),s=lerpColor(r,o,lE/(H/8)),n=R.n(0,i/mB/1.2*W);ff.fill(s),ff.arc(W/2,H/2,n,n,R.n(0,14),R.n(6,34))}}noLoop(),ff.noLoop()}function draw(){for(setTimeout(redraw,0);lE<mB&&1==fR;){let i=R.n(60,255),l=R.n(60,255),t=R.n(60,255);ff.noStroke(),ff.fill(i,l,t);let e=R.n(0,W),o=R.n(0,H),r=R.n(450,W/3),s=R.n(450,W/3),n=R.n(0,55);if(1==cS){let r=color(i,l,t),s=color(l,t,i),n=lerpColor(s,r,lE/(W2/8)),c=R.n(0,W/1.5);ff.fill(n),ff.arc(e,o,c,c,R.n(0,14),R.n(6,34))}ff.push(),1==lA?(ff.angleMode(DEGREES),1==aD?ff.rotate(45*round(n)):ff.rotate(22.5*round(n))):ff.rotate(n),ff.rect(e,o,r,s),ff.pop(),lE+=1}if(lC<mI){lE=mB,fR=1;for(let i=0;i<particles.length;i++)particles[i].run();lC+=1}if(1==mR&&lC%1200==0&&B>10&&(B-=B/3),lC>=mI&&rR<mR&&((1!=mC||vs<6)&&(vs=R.i(6,crllength-1),P=crl[vs],vs2=R.i(0,crl2length-1),P2=crl2[vs2]),Vlist.push(crlnames[vs]),Vlist2.push(crlnames2[vs2]),B<1.6&&1==sR?B*=1.6:B>=2?B/=dD:B>=6&&(B=B/dD*2),rR+=1,lC=0,lE=0),1==check){let i=hour(),l=minute(),t=second();sT[0],sT[1],sT[2];print("render finished at "+i+":"+l+":"+t),0==Flist.length?window.METADATA["Flow features"]="None":window.METADATA["Flow features"]=Flist.toString(),window.METADATA.Palettes=pL>=6&&pL<=9?Vlist2.toString():Vlist.toString(),window.METADATA["Draw shape"]=cA<=1?eL<=2?"Dot":"Box":tS<=1?0==tS?"Outlined marker":"Drop shadow marker":"Marker",print(window.METADATA),window.onImageRendered&&window.onImageRendered()}rR==mR&&lC>=mI&&(push(),noStroke(),pL<=9&&(r=R.i(-200),g=R.i(-200),b=R.i(-200)),fill(r,g,b),rect(W2-W2/10,H2-H2/27,15*M*M2),fill(g,b,r),rect(W2-W2/10+20*M*M2,H2-H2/27,15*M*M2),fill(b,r,g),rect(W2-W2/10+40*M*M2,H2-H2/27,15*M*M2),pop(),check+=1),lR+=1}pL<=5?(xI=R.i(0,2),mR=R.i(2,4),0==pL?Vlist.push("White"):pL<=5&&Vlist.push("Black")):(Vlist.push(crlnames[vs]),Vlist2.push(crlnames2[vs2])),xI<=3&&(B=R.n(2,4),cW/=2,num=R.n(1400,2500),tS=10,dD=R.n(1,1.4),cA=0,mpI=0,mI=R.i(700,1120),sPy=4,xI<=1&&(B=R.n(1.8,2.4),dD=1,num=R.n(1900,2500))),tS<=1&&(B*=1.3,num<1500&&(num/=2),mR=R.i(1,3),vs<6&&(mR=R.i(2,3)),cA=3,sPy=20),mpI>=8&&tS>1&&(num/=2,B*=1.3),1==mR&&(nG=3,rS=3,mI=R.i(1900,2220)),vs<=6&&(mR=R.i(2,5)),B<=3&&(dD=R.n(1,1.4)),1==sG&&(nC=1,nR=1,nG=3,mB/=2),num>2e3&&pL<6?mR=R.i(2,3):num>2e3&&vs>6&&pL<20&&(mR=R.i(1,3)),num*mI*mR>1e7&&(mI/=2),num*mI*mR<1e6&&(mI*=2,rS=2),num*mI*mR<2e6&&(rS=2),p5.disableFriendlyErrors=!0;class Particle{constructor(i,l,t){this.loc=i,this.dir=l,this.sP=t}run(){this.move(),this.edgeCheck(),this.update()}move(){let i,l=ff.get(this.loc.x,this.loc.y);i=0!=aG?(l[0]/l[1]+sin(l[2]))*TWO_PI:0==aD2?.785398163*ceil(l[0]/l[1]+l[2]):.3926990817*ceil(l[0]/l[1]+l[2]),aM<=5?(this.dir.x=sin(i),this.dir.y=cos(i)):aM<=7?(this.dir.x=tan(i),this.dir.y=atan(i)):(this.dir.x=sin(i),this.dir.y=fract(i));let t=this.dir.copy(),e=sM;t.mult(this.sP*e*M),this.loc.add(t)}edgeCheck(){if(this.loc.y>H-H/22||this.loc.x<W/21||this.loc.x>W-W/21||this.loc.y<H/22){3==R.i(0,3)&&(this.loc.x=R.n(W/15,W-W/15),this.loc.y=R.n(H/20,H-H/20))}if(this.loc.y>H-H/18||this.loc.x<W/14||this.loc.x>W-W/14||this.loc.y<H/18){if(5==R.i(0,10)&&(this.loc.x=R.n(W/15,W-W/15),this.loc.y=R.n(H/20,H-H/20)),cA>1&&(this.loc.x+B*cH/2*M>H-H/16||this.loc.y+B*cW/2*M>W-W/16||this.loc.x-B*cH/2*M<H/16||this.loc.y-B*cW/2*M<W/16)){3==R.i(0,7)&&(this.loc.x=R.n(W/15,W-W/15),this.loc.y=R.n(H/20,H-H/20))}}(lC==mI/2&&rS<=3&&rR<3||lC+1==mI/2&&rS<=3&&rR<3)&&(this.loc.x=R.n(W/15,W-W/15),this.loc.y=R.n(H/18,H-H/18))}update(){R.n(0,255),R.n(0,255),R.n(0,255);sC==sq-1&&(sC=0),this.V=color(P[sV[sC]]),this.Vx=color(P[sV[sC+1]]);let i=lerpColor(this.V,this.Vx,lR/bL);if((0==noSlide&&cA>1&&tS<=1||0==noSlide&&cA<=1)&&(i=color(P[sV[sC]])),0==pL&&1==rR?i=color(10,10,10):pL<=5&&1==rR&&(i=color(250,250,250)),pL>=6&&pL<=9&&(this.V=color(P2[sV[sC]]),this.Vx=color(P2[sV[sC+1]]),i=lerpColor(this.V,this.Vx,lR/bL)),fill(i),lR>=bL&&(this.V=color(P[sV[sC]]),sC+=1,fill(this.V),lR=0,bL=R.n(20,400),1==rE&&B>2&&(B/=1.5,cW/=1.5,cH/=1.5)),rR==mR&&mR>1&&B>3&&(B/=1.5),rR==mR&&mR>2&&mI<800&&1==wb){let l=color(255,255,255);if(this.Vy=lerpColor(this.V,l,.1),this.Vz=lerpColor(this.Vx,l,.1),1==bW){let i=color(0,0,0);this.Vy=lerpColor(this.V,i,.8),this.Vz=lerpColor(this.Vx,i,.8)}i=lerpColor(this.Vy,this.Vz,lR/bL)}if(this.loc.x*M2<W2-W2/60&&this.loc.y*M2<H2-H2/60&&this.loc.x*M2>0+W2/60&&this.loc.y*M2>0+H2/60)if(cA<=1){noStroke(),fill(i);let l=B;0==randBoxy&&(l=R.n(0,B)),eL<=2?ellipse(this.loc.x*M2,this.loc.y*M2,1.5*l*M*M2):rect(this.loc.x*M2,this.loc.y*M2,1.5*l*M*M2,1.5*l*M*M2,2*M2)}else{let l=B;0==randBoxy&&(l=R.n(0,B)),this.loc.x*M2+l*cH/2*M*M2<W2-W2/60&&this.loc.y*M2+l*cW/2*M*M2<H2-H2/60&&this.loc.x*M2-l*cH/2*M*M2>0+W2/60&&this.loc.y*M2-l*cW/2*M*M2>0+H2/60&&(tS<=1&&(stroke(0),strokeWeight(tusl*M*M2),0==tS?line(this.loc.x*M2-l*cH*tW/2*M*M2,this.loc.y*M2-l*cW*tW/2*M*M2,this.loc.x*M2+l*cH*tW/2*M*M2,this.loc.y*M2+l*cW*tW/2*M*M2):line(this.loc.x*M2-l*cH/2*M*M2,this.loc.y*M2-l*cW/2*M*M2,this.loc.x*M2+l*cH*tW/2*M*M2,this.loc.y*M2+l*cW*tW/2*M*M2)),stroke(i),strokeWeight(6*M*M2),line(this.loc.x*M2-l*cH/2*M*M2,this.loc.y*M2-l*cW/2*M*M2,this.loc.x*M2+l*cH/2*M*M2,this.loc.y*M2+l*cW/2*M*M2))}}}</script></body></html>P5JS