Files
sunny9898/task8/_ref/noc-examples-processing-master/chp07_CA/HexagonCells/HexagonCells.pde
louiscklaw 5637fbf94f update,
2025-02-01 02:07:58 +08:00

25 lines
338 B
Plaintext

// The Nature of Code
// Daniel Shiffman
// http://natureofcode.com
// Outline for game of life
// This is just a grid of hexagons right now
GOL gol;
void setup() {
size(600, 600);
gol = new GOL();
}
void draw() {
background(255);
gol.display();
}
// reset board when mouse is pressed
void mousePressed() {
gol.init();
}