ColorRGBA::Set
Defined in:
Sets all four components of a color.
TSColor.h
Prototype
ColorRGBA& Set(float r, float g, float b, float a = 1.0F);
Parameters
r |
The new red component. |
g |
The new green component. |
b |
The new blue component. |
a |
The new alpha component. |
Description
The Set
function sets the red, green, blue, and alpha components of a color to the values given by the r
, g
, b
, and a
parameters, respectively.The return value is a reference to the color object.