Sets the <Color> component at the specified index to the specified value.
int32 SetComponent( int32 p_nIndex, int32 p_nValue )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nIndex | The index of the component. ( 0 = R, 1 = G, 2 = B, or 3 = A ) |
int32 | p_nValue | An <int32> representing the R, G, B, or A value. Must be between 0-255. |
import library "app_service_console_util.ssl";
auto Color a_vuData;
a_vuData.SetComponent( 0, 255 );
a_vuData.SetComponent( 1, 128 );
a_vuData.SetComponent( 2, 64 );
a_vuData.SetComponent( 3, 255 );
Console.Out( a_vuData.GetComponent( 0 ) );
Console.Out( a_vuData.GetComponent( 1 ) );
Console.Out( a_vuData.GetComponent( 2 ) );
Console.Out( a_vuData.GetComponent( 3 ) );
255
128
64
255