Widget API: FontString:SetTextColor

From AddOn Studio
Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API FontString SetTextColor to API FontString SetTextColor without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)

Result[edit]

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.