ESODecoded

GetInterfaceColor

ESO Lua API function — used by 158 of the 3,030 addons we indexed (combined 69,553,715 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetInterfaceColor([InterfaceColorType|#InterfaceColorType] interfaceColorType, integer fieldValue)

Returns: number red, number green, number blue, number alpha

Real usage — from Dolgubon's Lazy Writ Crafter

for i = 1, 5 do
	local qualityColor = ZO_ColorDef:New(GetInterfaceColor(INTERFACE_COLOR_TYPE_ITEM_QUALITY_COLORS, i))

Short excerpt from the shipping addon Dolgubon's Lazy Writ Crafterits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Dolgubon's Lazy Writ Crafter9,498,314
LibLazyCrafting6,538,592
LibCustomMenu5,241,911
Votan's Minimap4,211,718
Master Merchant 3.03,883,523
Potion Maker (for Alchemy Crafting)3,765,616