Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 53

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(([,,,,n,r])=>{m=mag(x=a[4]-n,y=a[5]-r)+1,m<20&&(u=a[4]+=cos(B=a[1]+=atan2(x,y)/m),v=a[5]+=sin(B),stroke(a),line(u,v,n,r))})})};//#つぶやきProcessing

comments powered by Disqus