memoscan
← all memos

Memo 0xdae8d0c3…cdbf06 on Ethereum

ipfs://bafybeiaqzmnv6my3ptf4ltmamftcrwhvvitkti24jb33ceizh44fnkl5rulet lineCount=50,minStroke=1,maxStroke=12,duration=10000,startTime; function setup(){let s=min(windowWidth,windowHeight);createCanvas(s,s);background(0);startTime=millis();loop()} function draw(){let t=(millis()-startTime)%duration,p=t/duration,e=(1-cos(p*TWO_PI))/2,w=lerp(minStroke,maxStroke,e);background(100);push();translate(width/2,height/2);rotate(-HALF_PI);translate(-width/2,-height/2);noFill();let h=height/2;for(let i=0;i<lineCount;i++){let y=map(i,0,lineCount-1,0,height),c=abs(h-y)/h,m=lerp(maxStroke,minStroke,c),seg=20,sw=width/seg;for(let j=0;j<seg;j++){let x1=j*sw,x2=(j+1)*sw,tf=abs(width-x1)/width,ts=lerp(w,m,tf),vf=map(x1,0,width,0,1),cs=(millis()/1000)%60,hue=map(cs,0,60,0,360),sat=map(vf,0,1,20,80),bri=map(vf,0,1,40,200);colorMode(HSB,360,100,255);stroke(hue,sat,bri);strokeWeight(ts);line(x1,y,x2,y)}}pop()} function windowResized(){let s=min(windowWidth,windowHeight);resizeCanvas(s,s)}