Syntax
static unsigned int get_color(
EPixelFormat fmt,
float r,
float g,
float b,
float a=1.0);
Parameters
fmt | - | the pixel format to use |
r | - | the red value as a floating point number |
g | - | the green value as a floating point number |
b | - | the blue value as a floating point number |
a | - | the alpha value as a floating point number (defaults to opaque) |
Return value
the color value in the requested pixel format
Description
Converts separate red, blue, green and alpha floatingpoint values into a single color value
Back to index
|