int whichSlot = 0; int num = 35; float mx[] = new float[num]; float my[] = new float[num]; Eye[] eyes = new Eye[num]; void setup() { size (400,300); framerate(60); colorMode(HSB); smooth(); noStroke(); //eye1 = new Eye(width/2, height/2, 20, 20, color(200,30,130)); //for (int i = 0; i < eyes.length; i++) { // eyes[i] = new Eye(width/2, height/2, 10, 10, color(random(150,200),30,130); //} //background(0); } void draw() { background(51); // Reads throught the entire array // and shifts the values to the left for(int i=1; i= 40 || h >= 40 || w <= 5 || h <= 5) { inc = inc*-1; } if (x >= width || x <= 0) { xdir = xdir*-1; } if (y >= height || y <= 0) { ydir = ydir*-1; } } }