ColorArray

Category: Built-In Types

Brief Description

Array of Colors

Member Functions

ColorArray ColorArray ( Array from )
void push_back ( Color color )
void resize ( int idx )
void set ( int idx, Color color )
int size ( )

Description

Array of Color, can only contains colors. Optimized for memory usage, can’t fragment the memory.

Member Function Description

Create from a generic array.

  • void push_back ( Color color )

Append a value to the array.

  • void resize ( int idx )

Set the size of the ColorArray. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array.

Change the Color at the given index.

Return the array size.