WoW:API LayeredRegion SetVertexColor: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
 
m (add Category:Interface Customization)
Line 3: Line 3:




Sets the color of the texture. For instance if the texture used is a white bar, using Texture:SetVertexColor(0, 1, 0, 1) will turn it into a green bar. Note that this does NOT set the [[Color]] element when there is a [[file=""]] attribute set for the texture.
Sets the color of the texture. For instance if the texture used is a white bar, using Texture:SetVertexColor(0, 1, 0, 1) will turn it into a green bar. Note that this does NOT set the [[Color element]] when there is a [[file=""]] attribute set for the texture.
 
[[Category:Interface Customization]]

Revision as of 01:40, 7 December 2005

Usage: texture:SetVertexColor(r, g, b, a) where r, g, b and a are values from 0 to 1. r is red, g is green, b is blue and a is alpha.


Sets the color of the texture. For instance if the texture used is a white bar, using Texture:SetVertexColor(0, 1, 0, 1) will turn it into a green bar. Note that this does NOT set the Color element when there is a file="" attribute set for the texture.