API:GetItemQualityColor

__NOTOC__
Get item quality color components.
 local r, g, b = GetItemQualityColor(qualityNumber);
=== Arguments ===
:;qualityNumber
::number - 0 to 9 (0 - poor, 1 - common, 2 - uncommon, etc.)
=== Returns ===
:;r, g, b
::numbers - fractional values for red, green and blue components
=== Example ===
local r, g, b = GetItemQualityColor(recipe[4])
local hex_color = string.format("cff%02x%02x%02x", r*256, g*256, b*256)
== Related Functions ==
* GetQualityByGUID
Category:Functions