Skip to content
CI edited this page Feb 27, 2022 · 2 revisions

This is an extension of Blizzard's own ColorMixin. Created using Color.Create.


ColorMixin:SetRGBA(r, g, b, a)

This extends the original method by adding two additional properties, self.colorStr and self.isAchromatic.

  • colorStr - the hex representation of the color (string)
  • isAchromatic - weather or not the color is gray-scale (boolean)

ColorMixin:IsEqualTo(otherColor or r, g, b, a)

This extends the original method by adding support for non-object colors.


ColorMixin:Hue(delta)

See [Color.Hue]


ColorMixin:Saturation(delta)

See [Color.Saturation]


ColorMixin:Lightness(delta)

See [Color.Lightness]