WoW:API GetItemQualityColor: Difference between revisions

→‎Parameters: boilerplate
(There is no '#' in GetItemQualityColor() output)
(→‎Parameters: boilerplate)
Line 4: Line 4:


  r, g, b, hex = GetItemQualityColor(quality)
  r, g, b, hex = GetItemQualityColor(quality)
== Parameters ==
== Arguments ==
=== Arguments ===
;quality : Number - The numeric ID of the quality from 0 (Poor) to 7 (Heirloom).
:quality


:;quality : Integer - The numeric ID of the quality from 0 (Poor) to 7 (Heirloom).
== Returns ==
 
;r : Number - The Red component of the color (0 to 1, inclusive).
=== Returns ===
;g : Number - The Green component of the color (0 to 1, inclusive).
:r, g, b, hex
;b : Number - The Blue component of the color (0 to 1, inclusive).
 
;hex : String - The [[UI escape sequences|UI escape sequence]] for this color.
:;r : Float - The Red component of the color
:;g : Float - The Green component of the color
:;b : Float - The Blue component of the color
:;hex : String - Contains the hexidecimal representation of the string, as well as "|c" in the beginning.


== Example ==
== Example ==