Mikk38024@legacy41558003 (talk | contribs) ({{widgetmethod}}) |
Charibot@legacy41530750 (talk | contribs) m (catfix, Replaced: {{widgetmethod}}<br> → {{widgetmethod}}) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{widgetmethod}} |
{{widgetmethod}} |
||
− | |||
− | <center>'''FontString:SetTextColor''' ''-Documentation by [[user:Author|Author]]-''</center> |
||
− | |||
Set the color of the text. |
Set the color of the text. |
||
Line 21: | Line 18: | ||
== Example == |
== Example == |
||
− | string:SetTextColor(1.0, 0,0, 0.5) |
+ | string:SetTextColor(1.0, 0, 0, 0.5) |
====Result==== |
====Result==== |
Revision as of 23:51, 14 July 2008
The API is no longer being updated here until further notice. |
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.