Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetClassColor

Last wiki revision 2020-07-12

Returns the color value associated with a given class. rPerc, gPerc, bPerc, argbHex = GetClassColor(englishClass)

  • englishClass : String - the localization-independent name of the class, e.g., 'WARLOCK'. See ClassId for the list of acceptable arguments.
  • rPerc, gPerc, bPerc : Number - the value, between 0 and 1, associated with the red, green, and blue - respectively - coordinate in the RGB space.
  • argbHex : String - the ARGB hex code of the color, e.g., 'ff8788ee' for 'WARLOCK'.
  • The first three return values have two decimal places precision.
  • Any argument different than a valid englishClass will return information about the color white, i.e., 1, 1, 1, 'ffffffff'.

Categories

  • Colors

Source

https://warcraft.wiki.gg/wiki/API_GetClassColor · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.