Color::SetRGBFloat

Color::SetRGBFloat
inline void SetRGBFloat(float r, float g, float b);
Description

SetRGBFloat assigns the red, green, and blue channels using the passed RGB floating point values, each ranging from 0 to 1. The new 8-bit value is determined by multiplying the floating point value by 255. The alpha component is not changed.

Parameters
Parameters 
Description 
float r 
The red component as a floating point, ranging from 0.0 to 1.0. 
float g 
The green component as a floating point, ranging from 0.0 to 1.0. 
float b 
The blue component as a floating point, ranging from 0.0 to 1.0. 
See Also