Add Data Member Function

Adds a <Color> object to the end of the array.

Prototype

int32 Add( Color p_oColor )

Parameters

Parameter Type Parameter Name Documentation
<Color>p_oColorA pointer to the <Color> object to addto the array.

Examples

Copy Text To Clipboard

auto Color a_oValue = new Color( 255, 128, 64, 255 );

auto ColorArray a_aoArray;

a_aoArray.Add( a_oValue );
a_aoArray.Add( a_oValue );
a_aoArray.Add( a_oValue );
a_aoArray.Add( a_oValue );

for( int i = 0; i < a_aoArray.GetCount(); ++i )
{
   Console.Out( LibColor.Out( a_aoArray.Get( i ) ) );
}

Results

255, 128, 64, 255
255, 128, 64, 255
255, 128, 64, 255
255, 128, 64, 255