Share
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(([,,,,t,a])=>{m=mag(x=N[4]-t,y=N[5]-a)**2+1,u=N[4]+=cos(B=int(b=N[1]+=atan2(x,y)/m))/m,v=N[5]+=sin(B)/m}),stroke(N),circle(u,v,5)})};//#つぶやきProcessing
22 Apr 2020