Ejemplo n.º 1
0
        private void DisplayOutput()
        {
            graphic.Clear(Color.White);

            for (int r = 0; r < WIDTH; r++)
            {
                for (int c = 0; c < HEIGHT; c++)
                {
                    //bitMap.SetPixel(c, r, world.CellOutput()[Convert.ToInt32(Math.Floor(c / (double)4)), Convert.ToInt32(Math.Floor(r / (double)4))].cellColor());
                    bitMap.SetPixel(c, r, world.CellOutput()[c, r].cellColor());
                }
            }

            this.Refresh();
        }