TextField:setTextColor

From GiderosMobile
Revision as of 15:31, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")


Available since: Gideros 2011.6
Class: TextField

Description

Sets the color of the text in a text field in hexadecimal format.

<syntaxhighlight lang="lua"> TextField:setTextColor(color) </source>

Parameters

color: (number) color of the text in hexadecimal format.

Examples

<syntaxhighlight lang="lua">textfield:setTextColor(0xff0000) -- red textfield:setTextColor(0x00ff00) -- green textfield:setTextColor(0x0000ff) -- blue</source>