/* The Automata2D simulates "Conway's Game of Life". */ Automata2D ca; void setup() { // setup the environment size(500, 500); framerate(15); // Create a new Automata system, with each cell 3 pixels square ca = new Automata2D(3); } void draw() { // clear the background background(0); // run the automata ca.simulate(); } void mousePressed() { // create a new random board ca.randomize(); }