Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 43

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

comments powered by Disqus