Fandom

WoWWiki

API FontString SetTextColor

104,637pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Widget API ← FontString < SetTextColor

Set the color of the text.

someText:SetTextColor(red,green,blue,alpha)

Parameters Edit

Arguments Edit

(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 Edit

Nothing.

Example Edit

string:SetTextColor(1, 1, 1, 0.5)

ResultEdit

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.


Also on Fandom

Random Wiki