private void Window_Load(object sender, EventArgs e) { world = new World(WIDTH, HEIGHT); bitMap = new Bitmap(WIDTH, HEIGHT); graphic = Graphics.FromImage(bitMap); Display.Image = bitMap; //world.CellOutput[25,25]. DisplayOutput(); }
public Cell(World w, int initx, int inity) { world = w; x = initx; y = inity; int groupColor = rand.Next(1,4); for (int i = 0; i < 256; i++) { colorGene[i] = groupColor; } }
private void button1_Click(object sender, EventArgs e) { world = new World(WIDTH, HEIGHT); DisplayOutput(); }