Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 38

t=[],c=N=0,draw=a=>{if(!c++)for(createCanvas(W=400,W);N<41;N++)t[N]=[W-9*N,0,9*N];noStroke(),t.find(a=>{t.find(t=>{a!=t&&([q,r,s]=t,m=mag(x=a[0]-q,y=a[2]-s),b=a[1]+=m<N?atan2(x,y)/m:0,u=a[0]+=cos(b)/40,v=a[2]+=sin(b)/40)}),fill(a),circle(u,v,2)})};//#つぶやきProcessing

comments powered by Disqus