Sets the specified red, green, blue, and alpha values.
int32 SetRGBA( int32 p_nRed, int32 p_nGreen, int32 p_nBlue, int32 p_nAlpha )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nRed | Sets the red value of the color to the specified value. |
int32 | p_nGreen | Sets the green value of the color to the specified value. |
int32 | p_nBlue | Sets the blue value of the color to the specified value. |
int32 | p_nAlpha | Sets the alpha value of the color to the specified value. |
auto Color a;
a.SetRGBA( 255, 128, 64, 255 );
Console.Out( LibColor.Out( a ) );
255, 128, 64, 255