public static void Stroke(this IConsoleBuffer buffer, int x, int y, int width, int height, BoxDrawingSet set, ConsoleColor f, ConsoleColor b) { if (set is null) { throw new ArgumentNullException(nameof(set)); } buffer.Stroke(x, y, width, height, set.Vertical, set.Horizontal, set.UpperLeft, set.UpperRight, set.LowerLeft, set.LowerRight, f, b); }
public static void Stroke(this IConsoleBuffer buffer, int x, int y, int width, int height, BoxDrawingSet set, ConsoleColor f) { if (buffer is null) { throw new ArgumentNullException(nameof(buffer)); } buffer.Stroke(x, y, width, height, set, f, buffer.GetBackgroundColor(x, y)); }