import processing.opengl.*; //import processing.video.*; /* Ants!! May 16 2009 contact@daniel-vasquez.com */ Ant[] antList; int antNum = 1000; //MovieMaker mm; void setup(){ size(800,600, OPENGL); background(0); smooth(); //mm = new MovieMaker(this, width, height, "antTest2_hi.mov",24, MovieMaker.H263, MovieMaker.HIGH); //Make the ant list (i.e. array) antList = new Ant[antNum]; //Make a whole bumch of ants and put them in the list for (int i = 0; i < antNum; i++) { Ant newbie = new Ant(); newbie.x = 400; newbie.y = 300; newbie.antSize = 10; newbie.antSpeed = 10; antList[i] = newbie; }; }; void draw(){ background(255); for (int i = 0; i < antNum; i++) { antList[i].walkAround(); }; //mm.addFrame(); }; void mousePressed() { //mm.finish(); };