# 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.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2237

    // Automatic Variable Declarations
    // Implementation
    return ColorFromIndex((lp_playerColor), c_teamColorDiffuse);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1921

    // Automatic Variable Declarations
    // Implementation
    return ColorFromIndex((lp_playerColor));
}