API ColorMixin WrapTextInColorCode

Wraps a string with  and   escape sequences. wrappedText = WrapTextInColorCode(text, colorHexString) wrappedText = color:WrapTextInColorCode(text)

Arguments

 * text : - The text to wrap
 * colorHexString : -   followed by six hexadecimal digits as RRGGBB like the return from.

Returns

 * wrappedText : -   with the appropriate values inserted for RR, GG, BB and text.

Details

 * Operates as a standalone function with two arguments, or as a method of ColorMixin with one argument.

Example
print("Did someone say " .. WrapTextInColorCode("yellow", "ffffff00") .. "?")  -- Did someone say yellow ?