Пример #1
0
        public static ConsoleBit[,] CopyBits(int width, int height, ConsoleBit[,] bits)
        {
            var copy = new ConsoleBit[width, height];

            InsertBits(copy, 0, 0, width, height, bits);
            return(copy);
        }
Пример #2
0
        public static ConsoleBit[,] CreateBits(int width, int height, Func <int, int, ConsoleBit> bitFunc)
        {
            var bits = new ConsoleBit[width, height];

            for (var x = 0; x < width; x++)
            {
                for (var y = 0; y < height; y++)
                {
                    bits[x, y] = bitFunc(x, y);
                }
            }

            return(bits);
        }