-
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.
-
foregroundis a numeric expression in[0 to 15]. This specifies the new foreground attribute. -
backgroundis a numeric expression in0 to 15. This specifies the new background attribute. -
borderis a numeric expression in[0 to 15]specifying the border attribute. It is takenMOD 8: Values8 to 15produce 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. -
foregroundis not in[0 to 31],backgroundis not in[0 to 15]orborderis not in[0 to 15]: Illegal function call. - Statement is used in
SCREEN 2: Illegal function call.
- Press
RETURNto return to this menu. - Enter the name of a
TOPICto display it. - Enter
EXITto return to BASIC.
Choose from the following topics: