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); }
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); }