![]() |
The API is no longer being updated here until further notice. |
Sets the desaturation level of the texture.
TextureBase:SetDesaturation(desaturation)
Arguments
- desaturation
- number
[0.0 - 1.0]- The desaturation level.
Example
local tex = UIParent:CreateTexture()
tex:SetPoint("CENTER")
tex:SetTexture("interface/icons/inv_mushroom_11")
tex:SetDesaturation(1)
-
0.5 desaturation -
1.0 desaturation
