Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 50

t=[],N=0,draw=a=>{if(!N)for(createCanvas(W=400,W);N<41;N++)t[N]=[f=9*N,0,W-f,W,99*cos(N)+200,99*sin(N)+200];t.find(N=>{t.find(([,,,,a,f])=>{m=mag(x=N[4]-a,y=N[5]-f)+1,u=N[4]+=cos(B=floor(b=N[1]+=atan2(x,y)/m))/m,v=N[5]+=sin(B)/m}),stroke(N),circle(u,v,5)})};//#つぶやきProcessing

comments powered by Disqus