//figure out how to keep the fish to just the circle //separate out the swarming behavior from the path-following behavior., change Flock to Mother nature import processing.opengl.*; Flock flock; int scl;//= 8; PVector center; PFont f; boolean showvalues = false; //temporar variables for the pond //end temporary variables void setup() { size(500,400,OPENGL); f = loadFont("Arial-BoldMT-12.vlw"); //center = new PVector(width/2,height/2); flock = new Flock(); // Add an initial set of boids into the system for (int i = 0; i < 10; i++) { flock.addBoid(new Boid()); } smooth(); noStroke(); //hint(ENABLE_OPENGL_4X_SMOOTH); } float now = 0.0; void draw() { fill(0); rect(0, 0, width, height); fill(255); //why isn't this smooth? //ellipse(width-225, height-100, 397, 167); flock.run(); } //void keyPressed() { // showvalues = !showvalues; //}