Ram Prasad

Ram Prasad

  • NA
  • 326
  • 16.9k

Assign custom color to console.background

Apr 10 2020 12:48 AM
I have created a custom class to have more options for background color than ConsoleColor which only gives me 15 options. How can I assign my custom color to console.background?
 
Console.BackgroundColor = ???;
public enum CustomColor
{
DarkBlue, DarkGreen, DarkCyan, Teal, DarkRed, Violet, DarkYellow, Gray, DarkGray, Blue, Green, Cyan, Red, Magenta, Yellow, White, Aquamarine, Azure, BurlyWood, CadetBlue, Gainsboro, Gold, Gray, Khaki, LawnGreen, LightGreen, LightSkyBlue, Linen, MediumOrchid, MediumPurple, MistyRose, Olive, OliveDrab, Orange, OrangeRed, Orchid, PaleTurquoise

Answers (3)