17 static constexpr Color
KEEP = {0, 0, 0, 0};
Centralized color palette for teams and entity materials.
static constexpr int PALETTE_SIZE
static const SlimePalette _slimePalettes[PALETTE_SIZE]
static Color getResourceColor(int resourceIndex)
Returns the designated UI/3D color for a given resource index.
static bool colorEquals(Color a, Color b)
Utility to compare two colors for equality.
static const Color _teamColors[PALETTE_SIZE]
static constexpr Color KEEP
static Color getTeamColor(int index)
Returns a unique color for a team based on its index. Will repeat if more teams than palette size.
static SlimePalette getSlimePalette(Color teamColor)
Returns a slime palette with variations based on the team color.