// Dropping particles // Click the mouse to add obstacles // Daniel Shiffman // www.shiffman.net // Nov 2006 class Obstacle { Rectangle r; Obstacle(int x, int y, int w, int h) { r = new Rectangle(x-w/2,y,w,h); } boolean contains(float x, float y) { return r.contains(x,y); } void display() { fill(255,150); rect(r.x,r.y,r.width,r.height); } void move() { // If we wanted the obstacle to move } }