// a list of all rectangles Rectangle[] rectangles; int rectanglesSize; void setup(){ size(500,600); smooth(); rectanglesSize = 0; rectangles = new Rectangle[1]; } void draw(){ background(0); for( int i=0; i