Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 58

t=[N=0],draw=a=>{N||createCanvas(W=400,W),background(0),t[N++%(n=200)]=[f=(r=random)(W),g=r(W),W-f,W,f,g],t.find(a=>{t.find(([,,,,n,r])=>{m=mag(x=a[4]-n,y=a[5]-r)+1,m<30&&(stroke(a),line(u=a[4]+=cos(B=atan2(x,y)),v=a[5]+=sin(B),n,r))}),circle(u,v,4)})};//#つぶやきProcessing

comments powered by Disqus