Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 36

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

comments powered by Disqus