# Convert Color Index To Color

Grammartype color at index index
FlagsNative | Function

Returns the color at the specified color index. The color index is an index into the array of colors that appear when you select a color in a SC2 game lobby.

# Arguments

Returns — color

native color ColorFromIndex(int inIndex, int inType);

Category: Conversion / Color Conversions

# Examples

# mods/core.sc2mod


// L2237
ColorFromIndex((lp_playerColor), c_teamColorDiffuse)
// L1921