#include <rcolor.h>
Public Member Functions | |
rColor () | |
rColor (int h, int s, int v, int a=255) | |
rColor & | operator= (const rColor &) |
bool | operator== (const rColor &c) const |
void | setHSV (int, int, int) |
void | setRGB (int, int, int) |
void | setAlpha (int a) |
void | getHSV (int *, int *, int *) const |
void | getRGB (int *, int *, int *) |
int | getAlpha () const |
int | gray () |
unsigned int | rgb () |
Private Member Functions | |
void | normalizeHSV (int *, int *, int *) |
void | createRGB () |
Private Attributes | |
int | hue |
int | sat |
int | val |
int | red |
int | green |
int | blue |
int | alpha |
bool | dirty |
|
This constructor takes no arguments and sets the current color to an opaque white. Here is the call graph for this function: |
|
Here is the call graph for this function: |
|
Converts the current color to an RGB triple. |
|
|
|
Returns the current values for hue, saturation, and value in the parameters. |
|
Returns the RGB triple for the current color. Here is the call graph for this function: |
|
Returns a gray value based on the current color in the range of 0 ... 255. Here is the call graph for this function: |
|
|
|
Copies the values for hue, saturation and value from c. If the values for red, green and blue are useable, they are copied too. If not, only the corresponding flag dirty is set. |
|
Returns true if the components hue, saturation, value and alpha of the compared rColors are the same. |
|
Returns a pixel value for the current color, including alpha value. Here is the call graph for this function: |
|
|
|
Sets the current color to a new HSV triple. Here is the call graph for this function: |
|
Sets the current color to the values provided for r, g, and b. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|