TextField:setTextColor: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
TextField:setTextColor(color) | TextField:setTextColor(color) | ||
</source> | </source> | ||
'''color''': (number) color of the text in hexadecimal format. ''''''<br/> | === Parameters === | ||
'''color''': (number) color of the text in hexadecimal format. <br/> | |||
=== Examples === | |||
'''Example'''<br/> | |||
<source lang="lua">textfield:setTextColor(0xff0000) -- red<br /> | |||
textfield:setTextColor(0x00ff00) -- green<br /> | |||
textfield:setTextColor(0x0000ff) -- blue<br /></source> | |||
Revision as of 09:45, 23 August 2018
Available since: Gideros 2011.6
Description
Sets the color of the text in a text field in hexadecimal format.
TextField:setTextColor(color)
Parameters
color: (number) color of the text in hexadecimal format.
Examples
Example
textfield:setTextColor(0xff0000) -- red<br />
textfield:setTextColor(0x00ff00) -- green<br />
textfield:setTextColor(0x0000ff) -- blue<br />