What it does
PrintColor writes to a Text object: it sets rather than reads. It takes iRed (an integer), iGreen (an integer) and iBlue (an integer), and returns nothing. That is the first of 2 forms.
Syntax
1
PrintColor(iRed integer, iGreen integer, iBlue integer)2
PrintColor(iRed integer, iGreen integer, iBlue integer, iAlpha integer)Parameters
| Name | Type | In forms |
|---|---|---|
| iRed | integer | all |
| iGreen | integer | all |
| iBlue | integer | all |
| iAlpha | integer | 2 |
Every form returns
nothing
Example · generated
Form 1, the short one
PrintColor(255, 128, 128)DO Sync()LOOPForm 2, with every argument
PrintColor(255, 128, 128, 255)DO Sync()LOOPPrintColor is called with values of the types its signature asks for. 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.