xxxxxxxxxx
1
t=[k=i=0];draw=_=>{createCanvas(w=600,w);n=random;m=map;translate(300,300);for(i;i<w||!k++;){t[i++]=new s()}for(s of t){e=s.z-=20;if(e<0){e=s.z=w;s.x=n(-w,w);s.y=n(-w,w)}f=s.x/e;g=s.y/e;q=m(f,0,1,0,w);u=m(g,0,1,0,w);rect(q,u,9)}function s(){this.z=i;}}