#include <rvcolor.h>
Public Methods | |
void | setRed (rvulong val) |
void | setGreen (rvulong val) |
void | setBlue (rvulong val) |
void | setAlpha (rvulong val) |
rvulong | red (void) |
rvulong | green (void) |
rvulong | blue (void) |
rvulong | alpha (void) |
void | shadeAdd (int r, int g, int b) |
rvulong | channel (int ch) |
void | setChannel (int ch, rvulong val) |
void | setRGB (rvulong r, rvulong g, rvulong b) |
void | setRGBf (rvfloat r, rvfloat g, rvfloat b) |
rvfloat | brightness (void) |
void | shade (float sr, float sg, float sb) |
void | shade (float s) |
Public Attributes | |
rvulong | value |
frontend to the 32-bit field used for color definitions.
|
returns Alpha channel value |
|
returns Blue channel value |
|
|
|
return the value for the channel ch, where
|
|
returns Green channel value |
|
returns Red channel value |
|
sets Alpha channel value to val |
|
sets Blue channel value to val |
|
sets the value for the channel ch to val, where
|
|
sets Green channel value to val |
|
sets the R, G and B channels, leaving the Alpha channel untouched |
|
sets the R, G and B channels, leaving the Alpha channel untouched |
|
sets Red channel value to val |
|
|
|
brightens or darkens the color by multiplying with the given factors |
|
shades by adding or substracting values |
|
value as found in re-volt files |