Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 46

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

comments powered by Disqus