// author: didier hilhorst // p5_version: 0068 BImage b; Particle[] party; void setup() { rectMode(CENTER_DIAMETER); size(400,400); b = loadImage("part_bg.gif"); party = new Particle[500]; for (int i=0; i width) || (this.sx < 0)) { vx = -vx; } else { if ((this.sy > 344) || (this.sy < 0)) { vy = -vy; } } } // close void update() } // close class Particle