Syntax
static unsigned int get_color(
unsigned int rmask,
unsigned int gmask,
unsigned int bmask,
unsigned int amask,
float r,
float g,
float b,
float a=1.0);
Parameters
rmask | - | the bit mask for red |
gmask | - | the bit mask for green |
bmask | - | the bit mask for blue |
amask | - | the bit mask for the alpha |
r | - | the red value as a floating point |
g | - | the green value as a floating point |
b | - | the blue value as a flaoting point |
a | - | the alpha value as a floating point (default is opaque) |
Return value
the color value in the format you specify
Description
Returns the color value in a format you specifyby giving the red, green, blue and alphamasks, along with the corresponding red, blue,green and alpha values.
Back to index
|