C4 Engine
C4 Engine API Documentation

ColorRGB::Set

Defined in:  TSColor.h
Sets all three components of a color.
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.