Push Data Member Function

Pushes a <Color> object onto the stack ( at the end ).

Prototype

int32 Push( Color p_oColor )

Parameters

Parameter Type Parameter Name Documentation
<Color>p_oColorThe <Color> object you wish to push onto the stack.

Examples

Copy Text To Clipboard

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.Push( r );
data.Push( g );
data.Push( b );

LibColorArray.Out( data );

Results

COLORARRAY OUTPUT generated by TYPE_COLOR_ARRAY_UTIL.SSL
1,
1,
1,
255,
2,
2,
2,
255,
3,
3,
3,
255