C
C
CodeInside2016-03-13 18:03:47
C++ / C#
CodeInside, 2016-03-13 18:03:47

Is it possible to set color value in console in rgb(hex value) mode?

For example, I want to set the background color to rgb(#4A148C) and the text color to rgb(#F3E5F5). I used to use flags, but they are somehow inconvenient to use (especially when creating shades). Even in the vastness of the English-speaking Internet it is difficult to find something on this topic. How can I solve this problem?
(using the SetConsoleTextAttribute function)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2016-03-13
@vilgeforce

Using SetConsoleTextAttribute - no way, read MSDN and see what it takes as input.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question