Color Data Member Function

Constructs a <Color> object with the specified red, green, blue, and alpha values.

Prototype

Color Color( int32 p_iR, int32 p_iG, int32 p_iB, int32 p_iA )

Parameters

Parameter Type Parameter Name Documentation
int32p_iRAn <int32> representing the red value of the color. Must be 0-255.
int32p_iGAn <int32> representing the green value of the color. Must be 0-255.
int32p_iBAn <int32> representing the blue value of the color. Must be 0-255.
int32p_iAAn <int32> representing the alpha value of the color. Must be 0-255.

Examples

Copy Text To Clipboard

auto Color a_oValue = new Color( 255, 128, 64, 255 ); // = 'new Color(' indicates the start of the constructor.