TextColorAlpha

Family: Text · 2 forms

What it does

TextColorAlpha 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
TextColorAlpha(textID integer) → integer
2
TextColorAlpha(iTextIndex integer, iAlpha integer)

Parameters

NameTypeIn forms
textIDinteger1
iTextIndexinteger2
iAlphainteger2

What each form returns

1TextColorAlpha(text)integer
2TextColorAlpha(text, 255)nothing

Example · generated

Form 1, the command hands back the id

text = CreateText("hello")DO  Print(TextColorAlpha(text))  Sync()LOOP

Form 2, you choose the id yourself

text = CreateText("hello")TextColorAlpha(text, 255)DO  Sync()LOOP

CreateText is there to give the call something to act on; TextColorAlpha 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.

68 commands in Text