WoW:API LayeredRegion SetVertexColor

From AddOn Studio
Revision as of 01:40, 7 December 2005 by WoWWiki>Fandyllic (add Category:Interface Customization)
Jump to navigation Jump to search

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.