Adds a <Color> object to the end if the value is not already in the <ColorArray>.
int32 Merge( Color p_oColor )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Color> | p_oColor | The value to addto the <ColorArray>. |
import library "app_service_console_util.ssl";
import library "type_color_array_util.ssl";
auto Color r = new Color( 1, 1, 1, 255 );
auto Color g = new Color( 2, 2, 2, 255 );
auto Color b = new Color( 3, 3, 3, 255 );
auto ColorArray data;
data.Add( r );
data.Add( g );
data.Merge( b );
data.Merge( r );
LibColorArray.Out( data );
COLORARRAY OUTPUT generated by TYPE_COLOR_ARRAY_UTIL.SSL
1,
1,
1,
255,
2,
2,
2,
255,
3,
3,
3,
255