Sets the red, green and blue values of a <Color> object.
int32 SetRGB( int32 p_nRed, int32 p_nGreen, int32 p_nBlue )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nRed | The new red value of the color, between 0 and 255. |
int32 | p_nGreen | The new green value of the color, between 0 and 255. |
int32 | p_nBlue | The new blue value of the color, between 0 and 255. |
auto Color a;
a.SetRGB( 255, 128, 64 );
Console.Out( LibColor.Out( a ) );
255, 128, 64, 0