README.md
December 4, 2022 ยท View on GitHub
Description
This will change the back round and the text color in a console window.
More Info
| Submitted On | |
| By | Lee Trager |
| Level | Beginner |
| User Rating | 3.0 (21 globes from 7 users) |
| Compatibility | C, C++ (general), Microsoft Visual C++ |
| Category | Graphics/ Sound |
| World | C / C++ |
| Archive File |
Source Code
Each number/letter stands for a color. The first number/letter is the back round color the second is the text color.
0 -- black
1 -- blue
2 -- green
3 -- aqua
4 -- red
5 -- purple
6 -- yellow
7 -- white
8 -- gray
9 -- light blue
A -- light green
B -- light aqua
C -- light red
D -- light purple
Put this code in.
system("color /*now put the back round color, next the text color*/");
ex:
system("color 0C"); //sets console color 2 light red w/ a black back round