-
Notifications
You must be signed in to change notification settings - Fork 0
PALETTE
Andrew Owen edited this page May 25, 2023
·
1 revision
PALETTE [attrib, color]
Assigns a color to an attribute. All pixels with that attribute will change
color immediately. If no parameters are specified, PALETTE
resets to the initial
setting.
-
attrib
is a numeric expression from[0 to 63]
. -
color
is a numeric expression between[0 and 255]
Colors are entered in compressed RGB format (lowest to highest bit). The red and
green levels are each stored in three bits (0 to 7
) while the blue level is
stored in two bits (0 to 3
). The easiest way to enter values is in octal (@BGR
).
For example, to set attribute
to maximum blue, you would enter:
PALETTE attribute, @300
.
-
attrib
orcolour
has a string value: Type mismatch. -
attrib
orcolour
is not in[0 to 32767]
: Overflow -
attrib
orcolour
is not in range: Illegal function call
- Press
RETURN
to return to this menu. - Enter the name of a
TOPIC
to display it. - Enter
EXIT
to return to BASIC.
Choose from the following topics: