#include <Color.h>
Public Types | |
typedef unsigned char | ColorUnit |
Public Member Functions | |
Color (ColorUnit R, ColorUnit G, ColorUnit B, ColorUnit A=maxChannelValue) | |
void | set (ColorUnit R, ColorUnit G, ColorUnit B, ColorUnit A) |
ColorUnit | R () const |
ColorUnit | G () const |
ColorUnit | B () const |
ColorUnit | A () const |
void | setR (ColorUnit r) |
void | setG (ColorUnit g) |
void | setB (ColorUnit b) |
void | setA (ColorUnit a) |
Color | operator *= (float v) |
Color | operator * (float v) const |
bool | opaque () const |
Static Public Attributes | |
static const ColorUnit | maxChannelValue = 255 |
Private Attributes | |
ColorUnit | mR |
ColorUnit | mG |
ColorUnit | mB |
ColorUnit | mA |
It can store integer values for each channel in the range of 0 to 255.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|