|
BWAPI
|
#include <Color.h>


Public Member Functions | |
| Color () | |
| Color (int id) | |
| Color (int red, int green, int blue) | |
| int | red () const |
| int | green () const |
| int | blue () 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 | ( | 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::green | ( | ) | const |
Return the green component of the color.


| int BWAPI::Color::red | ( | ) | const |
Return the red component of the color.


1.7.6.1