Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 52

t=[],N=0,draw=a=>{for(N||createCanvas(W=400,W),background(0,9);N<W;N++)t[N]=[f=(r=random)(W),g=r(W),W-f,W,f,g];t.find(a=>{t.find(([,,,,r,n])=>{m=mag(x=a[4]-r,y=a[5]-n)+1,m<9&&(u=a[4]+=cos(B=a[1]+=atan2(x,y)/m)/m,v=a[5]+=sin(B)/m)}),stroke(a),circle(u,v,2)})};//#つぶやきProcessing

comments powered by Disqus