Frame:GetBackdropColor

From Warcraft Wiki
Jump to navigation Jump to search

Frames provide two methods to determine the tint applied to their backdrop files:

  • GetBackdropColor() returns the tint applied to the background component of a frame's backdrop
  • GetBackdropBorderColor() returns the tint applied to the border component of a frame's backdrop
red, green, blue, alpha = frame:SetBackdropColor()
red, green, blue, alpha = frame:SetBackdropBorderColor()

Returns

red
Number - Remaining proportion of the original red colour, from 0 to 1
green
Number - Remaining proportion of the original green colour, from 0 to 1
blue
Number - Remaining proportion of the original blue colour, from 0 to 1
alpha
Number - Remaining proportion of the original opaqueness, from 0 to 1

Notes

  • These values describe any tint applied to the backdrop files, not the actual colour and alpha of each pixel in those file
  • These values also ignore other sources of transparency that could affect the appearance, such as Region:SetAlpha()

Patch changes

See also

References