Frame:GetBackdropColor
Jump to navigation
Jump to search
This is no longer a part of the World of Warcraft API.
|
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
- Patch 1.11.0 (2006-06-19): Added.[1]
See also
References
- ^ slouken 2006-04-27. Re: "Missing" Widget API Functions. Archived from the original