Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 33

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

comments powered by Disqus