WoW:API GetItemQualityColor: Difference between revisions

(→‎Parameters: boilerplate)
Line 11: Line 11:
;g : Number - The Green component of the color (0 to 1, inclusive).
;g : Number - The Green component of the color (0 to 1, inclusive).
;b : Number - The Blue component of the color (0 to 1, inclusive).
;b : Number - The Blue component of the color (0 to 1, inclusive).
;hex : String - The [[UI escape sequences|UI escape sequence]] for this color.
;hex : String - The 4 character hex [[UI escape sequences|UI escape sequence]] for this color.
 


== Example ==
== Example ==
Line 22: Line 23:
: Will print all qualities, in their individual colors (example result from version 3.1.1).
: Will print all qualities, in their individual colors (example result from version 3.1.1).
{{Example/Begin}}
{{Example/Begin}}
0 <span style="color: #9d9d9d">Poor 9d9d9d</span><br />
0 <span style="color: #9d9d9d">Poor ff9d9d9d</span><br />
1 <span style="color: #ffffff">Common ffffff</span><br />
1 <span style="color: #ffffff">Common ffffffff</span><br />
2 <span style="color: #1eff00">Uncommon 1eff00</span><br />
2 <span style="color: #1eff00">Uncommon ff1eff00</span><br />
3 <span style="color: #0070dd">Rare 0070dd</span><br />
3 <span style="color: #0070dd">Rare ff0070dd</span><br />
4 <span style="color: #a335ee">Epic a335ee</span><br />
4 <span style="color: #a335ee">Epic ffa335ee</span><br />
5 <span style="color: #ff8000">Legendary ff8000</span><br />
5 <span style="color: #ff8000">Legendary ffff8000</span><br />
6 <span style="color: #e6cc80">Artifact e6cc80</span><br />
6 <span style="color: #e6cc80">Artifact ffe6cc80</span><br />
7 <span style="color: #e6cc80">Heirloom e6cc80</span>
7 <span style="color: #e6cc80">Heirloom ffe6cc80</span>
{{Example/End}}
{{Example/End}}


==Details==
==Details==