Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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;

            }
        }
Ejemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     world = new World(WIDTH, HEIGHT);
     DisplayOutput();
 }