int particleNum = 1000; Particle[] p = new Particle[particleNum]; void setup(){ size(400, 400, JAVA2D); smooth(); int col; float s; for (int i = 0; i width + s || y > height + s){ reset(); } x += vx; y += vy; strokeWeight(s); stroke(col); point(x, y); } }