Пример #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();
        }
Пример #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;

            }
        }
Пример #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     world = new World(WIDTH, HEIGHT);
     DisplayOutput();
 }