How do I add color to my

for my name genarator?
Can anyone with C++ experience please help me? Thanks!


You are viewing a single comment. View All

@RepelDown If you want, I had an old function for coloring that I used in one of my HTTP servers for color-coding stuff like errors vs normal messages.
(green was good, red was an error)

Just moved the function into a Repl:

It takes wide strings, not ASCII strings.

It is also probably a bit advanced since it uses a template, but hopefully it isn't too complicated.

It takes three template arguments, r for red, g for green, and b for blue.

They all must be constants between 0..255.