C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

ColorRGB::Set

Defined in:  C4ColorRGBA.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.