BWAPI 4.2.0 An API for interacting with Starcraft: Broodwar (1.16.1) |
Public Member Functions | |
constexpr | Color (int id=0) |
Color (int red, int green, int blue) | |
int | blue () const |
int | green () const |
int | red () const |
The Color object is used in drawing routines to specify the color to use.
0
)A constructor that uses the color index in the palette that is closest to the given rgb values.
On its first call, the colors in the palette will be sorted for fast indexing.
red | The amount of red. |
green | The amount of green. |
blue | The amount of blue. |
Retrieves the red component of the color.
Referenced by Color().
Retrieves the green component of the color.
Referenced by Color().
Retrieves the blue component of the color.
Referenced by Color().