public void Clear(ConsoleColor background, ConsoleColor foreground) { int c = CellEncoding.Encode(' ', background, foreground); for (int i = 0; i < Width; i++) { for (int j = 0; j < Height; j++) { _Cells[i, j] = c; } } }
public void SetCell(int x, int y, char ch, ConsoleColor background, ConsoleColor foreground) => _Cells[x, y] = CellEncoding.Encode(ch, background, foreground);