Currently, I'm working on a project in C# in which I'd like to be able to use my own custom colors rather than only the ConsoleColor colors. Preferably, I'd be able to input an RGB value, give the color a name, and be able to do something like this:
Console.BackgroundColor = RGBColor(255, 174, 0);
I do realize that this question has already been asked a few times, but the solutions haven't been quite right for me. I've looked here, here, and here, but as I'm pretty new to C#, the answers just don't make sense, especially because I don't quite get what p/invoke is or does. Is there anything simple that I can do to implement RGB (from what I've read, I know the console supports it), or can anyone provide an explanation on the methods I've researched? Thanks in advance.