ColorMixin:GenerateHexColor()

From Warcraft Wiki
Jump to navigation Jump to search
These functions are implemented in :GenerateHexColor FrameXML/Util.lua.

Returns a hex representation used in an escape sequence.

hexColor = color:GenerateHexColor()
hexMarkup = color:GenerateHexColorMarkup()

Returns

hexColor
string - Eight hexadecimal digits as AARRGGBB, but the first two are always ff even if the ColorMixin had a custom alpha.
hexMarkup
string - Same as hexColor, but preceeded with |c to produce an escape sequence, |cffRRGGBB.

Patch changes

See also

References

 
  1. ^ 2018-07-16, Util.lua, version 8.0.1.27101, near line 646, archived at Townlong-Yak
  2. ^ 2016-07-19, Util.lua, version 7.0.3.22267, near line 621, archived at Townlong-Yak