BWAPI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
BWAPI::Color Class Reference

#include <Color.h>

Inheritance diagram for BWAPI::Color:
Inheritance graph
[legend]
Collaboration diagram for BWAPI::Color:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Color ()
 Color (int id)
 Color (int red, int green, int blue)
int red () const
int green () const
int blue () const

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

Return the blue component of the color.

Here is the call graph for this function:

Here is the caller graph for this function:

Return the green component of the color.

Here is the call graph for this function:

Here is the caller graph for this function:

Return the red component of the color.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines