ColorMixin :GetRGBAAsBytes()
Jump to navigation
Jump to search
- These functions are implemented in
.:GetRGBAAsBytes FrameXML/Util.lua
- These functions are implemented in
Returns the properties of a ColorMixin, multiplied by 255.
r, g, b, a = color:GetRGBAAsBytes() r, g, b = color:GetRGBAsBytes()
Returns
- r, g, b
- number - Scaled values between 0 and 255.
- a
- number? - Scaled value between 0 and 255, or 255 if it was undefined.
Patch changes
- Patch 7.3.0 (2017-08-29): Alpha now defaults to 255, no longer causing an error if it was undefined.[1]
- Patch 7.0.3 (2016-07-19): Added.[2]
See also
- ColorMixin:GetRGBA(r, g, b [, a]) - Returns the properties without multiplying by 255.
- CreateColorFromBytes(r, g, b, a) - Creates a new ColorMixin using arguments similar to the returns from GetRGBAAsBytes().
References
- ^ 2017-08-28, Util.lua, version 7.3.0.24920, near line 606, archived at Townlong-Yak
- ^ 2016-07-19, Util.lua, version 7.0.3.22267, near line 621, archived at Townlong-Yak