ColorMixin:IsEqualTo()

From Warcraft Wiki
(Redirected from API AreColorsEqual)
Jump to navigation Jump to search
These functions are implemented in :IsEqualTo FrameXML/Color.lua and FrameXML/ColorUtil.lua.

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

External links

AreColorsEqual()

References

 
  1. ^ 2020-10-13, Color.lua, version 9.0.1.36230, archived at Townlong-Yak
  2. ^ 2020-10-13, ColorUtil.lua, version 9.0.1.36230, archived at Townlong-Yak
  3. ^ 2016-07-19, Util.lua, version 7.0.3.22267, near line 621, archived at Townlong-Yak