ClearColor

Family: Core · One form

What it does

ClearColor writes a value: it sets rather than reads. It takes red (an integer), green (an integer) and blue (an integer), and returns nothing.

Syntax

ClearColor(red integer, green integer, blue integer)

Parameters

NameType
redinteger
greeninteger
blueinteger

Every form returns

nothing

Example · generated

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

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

200 commands in Core