TextureBase:SetDesaturated
Jump to navigation
Jump to search
TextureBase:IsDesaturated |
||
TextureBase:SetDesaturated |
||
TextureBase:GetDesaturation |
||
TextureBase:SetDesaturation |
Sets the texture to be desaturated.
TextureBase:SetDesaturated([desaturated])
Arguments
- desaturated
- boolean?
= false
-True
to make the image grayscale,false
for the original colors.
Example
Turns the icon grayscale.
local tex = UIParent:CreateTexture()
tex:SetPoint("CENTER")
tex:SetTexture("interface/icons/inv_mushroom_11")
tex:SetDesaturated(true)
Patch changes
Patch 6.0.2 (2014-10-14): 1/(nil/0) changed to true/false all over the API.