I know how to get console text colored. So what I want to know is to just color a space. Sort of like a colored space. Like in tanks (see games post).
- SirCrono6
I know how to get console text colored. So what I want to know is to just color a space. Sort of like a colored space. Like in tanks (see games post).
- SirCrono6
Last edited by SirCrono6; 12-29-2003 at 03:16 PM.
From C to shining C++!
Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
- Bubba
IDE and Compiler - Code::Blocks with MinGW
Operating System - Windows XP Professional x64 Edition
There are two ways to handle this:
One possibility is to use the " " (space) character and set the Background color to what you want it to. The Foreground obviously doesnt matter.
The second way, which i use, is this character, "Û" which you can just copy and paste. It is a blank block, and you can set the color to whatever you want.
Good luck hope this helps
You can use any character. Just set the foreground and background colours to the same value.
Brendan
Draco dormiens nunquam titallandus.
Console Graphics Library: http://www.geocities.com/steve_alberto/cgl.html
Thanks. I like the Û way. I even made a Color.h . Well, anyways, how do I set it back to the default color? You know, set it to blue, then back to default.
- SirCrono6
From C to shining C++!
Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
- Bubba
IDE and Compiler - Code::Blocks with MinGW
Operating System - Windows XP Professional x64 Edition
Foreground colour: Light grey, background colour: 0.
BrendanCode:SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE 0);
Draco dormiens nunquam titallandus.
Console Graphics Library: http://www.geocities.com/steve_alberto/cgl.html