WoW:API FontString SetTextColor: Difference between revisions
Jump to navigation
Jump to search
FontString:SetTextColor -Documentation by Author-
No edit summary |
({{widgetmethod}}) |
||
| Line 1: | Line 1: | ||
{{widgetmethod}} | |||
<center>'''FontString:SetTextColor''' ''-Documentation by [[user:Author|Author]]-''</center> | <center>'''FontString:SetTextColor''' ''-Documentation by [[user:Author|Author]]-''</center> | ||
| Line 24: | Line 26: | ||
This will set the text color to be used with SetText() or any other output function. In this the text will be semi transparent red. | This will set the text color to be used with SetText() or any other output function. In this the text will be semi transparent red. | ||
__NOTOC__ | __NOTOC__ | ||
Revision as of 11:57, 10 June 2006
← Widget API ← FontString < SetTextColor
Set the color of the text.
someText:SetTextColor(red,green,blue,alpha)
Parameters
Arguments
- (red, green, blue, alpha)
- red
- Number - Range 0 to 1
- green
- Number - Range 0 to 1
- blue
- Number - Range 0 to 1
- alpha
- Number - Range 0 to 1. Optional.
Returns
Nothing.
Example
string:SetTextColor(1.0, 0,0, 0.5)
Result
This will set the text color to be used with SetText() or any other output function. In this the text will be semi transparent red.