/// <summary> /// Returns a string wrapped in an ANSI background color code using the specified color. /// </summary> /// <param name="input">The string to color.</param> /// <param name="color">The color to use on the specified string.</param> public static string PastelBg( this string input, ConsoleColor color ) => PastelBg( input, FromColor( color ) );
/// <summary> /// Convert a <see cref="ConsoleColor"/> to a <see cref="Color"/>. /// </summary> /// <param name="c"></param> /// <returns></returns> public static Color FromColor( ConsoleColor c ) // from: https://stackoverflow.com/a/33776815/5288396 => Color.FromArgb( _cColors[(int)c] );