FontString:SetTextColor

From Warcraft Wiki
Jump to navigation Jump to search

Set the font color.

fontString:SetTextColor(red, green, blue [, alpha])

Arguments

red
number - Range 0 to 1.
green
number - Range 0 to 1.
blue
number - Range 0 to 1.
alpha
number?Optional. Could be nil. - Range 0 to 1; optional.

Example

Sets the font color to semi-transparent red.

string:SetTextColor(1.0, 0, 0, 0.5)