What it does
TextColorGreen takes textID (an integer), and answers an integer. That is the first of 2 forms. textID is the id of a Text object, the one CreateText returned: it is how the call knows what to act on.
Syntax
1
TextColorGreen(textID integer) → integer2
TextColorGreen(iTextIndex integer, iGreen integer)Parameters
| Name | Type | In forms |
|---|---|---|
| textID | integer | 1 |
| iTextIndex | integer | 2 |
| iGreen | integer | 2 |
What each form returns
| 1 | TextColorGreen(text) | integer |
| 2 | TextColorGreen(text, 128) | nothing |
Example · generated
Form 1, the command hands back the id
text = CreateText("hello")DO Print(TextColorGreen(text)) Sync()LOOPForm 2, you choose the id yourself
text = CreateText("hello")TextColorGreen(text, 128)DO Sync()LOOPCreateText is there to give the call something to act on; TextColorGreen is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.