Fill Data Member Function

Sets all the items in the <ColorArray> to this value.

Prototype

int32 Fill( Color p_oColor )

Parameters

Parameter Type Parameter Name Documentation
<Color>p_oColorA pointer to the <Color> object whose value you wish to set for all the items in the <ColorArray>.

Examples

Copy Text To Clipboard

import library "type_color_array_util.ssl";

auto Color red = new Color( 255, 0, 0, 255 );

auto ColorArray data;
data.Count = 4;

data.Fill( red );

LibColorArray.Out( data );

Results

COLORARRAY OUTPUT generated by TYPE_COLOR_ARRAY_UTIL.SSL
0,
0,
255,
255,
0,
0,
255,
255,
0,
0,
255,
255,
0,
0,
255,
255