#include <Color.h>
Public Member Functions | |
Color () | |
Color (int id) | |
Color (const Color &other) | |
Color (int red, int green, int blue) | |
int | getID () const |
int | red () const |
int | green () const |
int | blue () const |
Color & | operator= (const Color &other) |
operator int () const |
StarCraft uses a 256 color palette to render everything, so the colors we can use to draw shapes using BWAPI is limited to the colors available in the Palette.
BWAPI::Color::Color | ( | int | id | ) |
Create a color using the specified index from the Broodwar color palette.
BWAPI::Color::Color | ( | const Color & | other | ) |
BWAPI::Color::Color | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Create a color using the color in the palette that is closest to the RGB color specified.
int BWAPI::Color::blue | ( | ) | const |
Return the blue component of the color.
int BWAPI::Color::getID | ( | ) | const |
Return the index of the color in the color palette.
int BWAPI::Color::green | ( | ) | const |
Return the green component of the color.
BWAPI::Color::operator int | ( | ) | const |
int BWAPI::Color::red | ( | ) | const |
Return the red component of the color.