I have a function:
Code:
void color(int x)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), x);
}
I don't understand how the x works, when do I get the foreground and the background, I made a generator (for-loop to 1000 (and also a input color(...,int x)), I still didn't get it.

Thanks.