inline void SetRGBAFloat(float r, float g, float b, float a);
SetRGBAFloat 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.
Parameters |
Description |
float r |
The red component as a floating point value between 0.0 and 1.0. |
float g |
The green component as a floating point value between 0.0 and 1.0. |
float b |
The blue component as a floating point value between 0.0 and 1.0. |
float a |
The alpha component as a floating point value between 0.0 and 1.0. |