/// <summary> /// draw text to the screen buffer /// </summary> /// <param name="basePixel"></param> /// <param name="text"></param> /// <param name="x"></param> /// <param name="y"></param> public void DrawText(Pixel basePixel, string text, int x, int y) { DrawPixels(text.ToCharArray().Select((t, i) => new Pixel(t.ToString(), x + i, y, basePixel.BackgroundColor, basePixel.ForegroundColor, true))); }
public void DrawText(string text, int x, int y) { var pixel = new Pixel(Style.ForegroundColor.White, Style.BackgroundColor.Black); DrawText(pixel, text, x, y); }
/// <summary> /// add a single pixel to the screen buffer /// </summary> /// <param name="pixel"></param> public void DrawPixel(Pixel pixel) { _screenBufferArray[pixel.X, pixel.Y] = pixel.ToString(); }