After doing some Google searches it has kinda come back to me a little bit. Try this and just mess around with stuff til you figure it out
Code:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
//setup some stuff
HANDLE hConsole;
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hConsole, FOREGROUND_RED);
cout<<"Red\n";
SetConsoleTextAttribute(hConsole, FOREGROUND_BLUE);
cout<<"Blue\n";
SetConsoleTextAttribute(hConsole, FOREGROUND_GREEN);
cout<<"Green\n";
SetConsoleTextAttribute(hConsole, 15);
cout<<"There are a ton of ways to manipulate colors, give em a try!\n\n";
cin.get();
}
You can also try this:
Code:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
HANDLE hConsole;
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
for(int i=0; i<255; i++)
{
SetConsoleTextAttribute(hConsole, i);
cout<<"There are a ton of different combinations!!!\n";
}
cin.get();
}
Have fun!