Frame:SetBackdropColor
Jump to navigation
Jump to search
This is no longer a part of the World of Warcraft API.
|
Frames provide two methods to apply tint to their backdrop files:
- SetBackdropColor() tints the background component of a frame's backdrop
- SetBackdropBorderColor() tints the border component of a frame's backdrop
frame:SetBackdropColor(red, green, blue[, alpha]) frame:SetBackdropBorderColor(red, green, blue[, alpha])
Arguments
- red
- Number - Proportion of the original red colour to remain, from 0 to 1
- green
- Number - Proportion of the original green colour to remain, from 0 to 1
- blue
- Number - Proportion of the original blue colour to remain, from 0 to 1
- alpha
- Number - Proportion of the original opaqueness to remain, from 0 to 1
Notes
- These values only modify the existing colour and alpha of the backdrop files; it its not possible to be lighter or more opaque than the original
- Subsequent calls to the same function will override previous ones; i.e. they apply to the original texture directly rather than interacting with the previously-tinted one
Patch changes
- Patch 1.9.0 (2006-01-03): Added fourth argument, alpha.[1]
See also
References
- ^ Iriel. Detailed API Changes 1.8.1 -> 0.9.0 (Dec 4). Archived from the original