ColorMixin :IsEqualTo()
(Redirected from API AreColorsEqual)
Jump to navigation
Jump to search
- These functions are implemented in
and:IsEqualTo FrameXML/Color.lua FrameXML/ColorUtil.lua
.
- These functions are implemented in
Tests colors for equivalence.
isEqual = color:IsEqualTo(otherColor) isEqual = AreColorsEqual(left, right)
Arguments
- otherColor
- table - ColorMixin to compare.
- left, right
- table - ColorMixins to compare.
Returns
- isEqual
- boolean - True if the red, green, blue and alpha components are equal (including if alpha is undefined on both).
Patch changes
- Patch 9.0.1 (2020-10-13): Moved to
Color.lua
andColorUtil.lua
.[1][2] - Patch 7.0.3 (2016-07-19): Added in
Util.lua.
[3]
External links
AreColorsEqual()
- GitHub FrameXML, Gethe
- Globe "wut?" Tool, Townlong-Yak
References
- ^ 2020-10-13, Color.lua, version 9.0.1.36230, archived at Townlong-Yak
- ^ 2020-10-13, ColorUtil.lua, version 9.0.1.36230, archived at Townlong-Yak
- ^ 2016-07-19, Util.lua, version 7.0.3.22267, near line 621, archived at Townlong-Yak