-
Notifications
You must be signed in to change notification settings - Fork 0
COLOR
Andrew Owen edited this page May 25, 2023
·
1 revision
COLOR [foreground] [, [background] [, border]]
Changes the current foreground and background attributes. All new characters printed will take the newly set attributes. Existing characters on the screen are not affected.
-
foreground
is a numeric expression in[0 to 15]
. This specifies the new foreground attribute. -
background
is a numeric expression in0 to 15
. This specifies the new background attribute. -
border
is a numeric expression in[0 to 15]
specifying the border attribute. It is takenMOD 8
: Values8 to 15
produce the same colour as0 to 7
.
- Any of the parameters has a string value: Type mismatch.
- Any of the parameters is not in
[-32768 to 32767]
: Overflow. -
foreground
is not in[0 to 31]
,background
is not in[0 to 15]
orborder
is not in[0 to 15]
: Illegal function call. - Statement is used in
SCREEN 2
: 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: