PrintColor

Family: Text · 2 forms

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

NameTypeIn forms
iRedintegerall
iGreenintegerall
iBlueintegerall
iAlphainteger2

Every form returns

nothing

Example · generated

Form 1, the short one

PrintColor(255, 128, 128)DO  Sync()LOOP

Form 2, with every argument

PrintColor(255, 128, 128, 255)DO  Sync()LOOP

PrintColor 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.

68 commands in Text