- These functions are implemented in
.:GenerateHexColor FrameXML/Util.lua
- These functions are implemented in
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 alwaysff
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[]
- Patch 8.0.1 (2018-07-17): GenerateHexColorMarkup() added.[1]
- Patch 7.0.3 (2016-07-19): GenerateHexColor() added.[2]
See also[]
- ColorMixin:WrapTextInColorCode(text) - Wraps text with both the hexMarkup and
|r
. - CreateColorFromHexString(hexColor) - Creates a new ColorMixin using an argument similar to the return from GenerateHexColor().
References[]
- ^ 2018-07-16, Util.lua, version 8.0.1.27101, near line 646, archived at Townlong-Yak
- ^ 2016-07-19, Util.lua, version 7.0.3.22267, near line 621, archived at Townlong-Yak