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