Skip to content
Andrew Owen edited this page May 25, 2023 · 1 revision

COLOR


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.

Parameters

  • foreground is a numeric expression in [0 to 15]. This specifies the new foreground attribute.
  • background is a numeric expression in 0 to 15. This specifies the new background attribute.
  • border is a numeric expression in [0 to 15] specifying the border attribute. It is taken MOD 8: Values 8 to 15 produce the same colour as 0 to 7.

Errors

  • 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] or border is not in [0 to 15]: Illegal function call.
  • Statement is used in SCREEN 2: Illegal function call.

Welcome to the SE BASIC wiki


  • 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:

  1. Quick start guide: QUICK
  2. User's guide: USER
  3. Configuration guide: CONFIG
  4. Language guide: LANGUAGE
  5. Language reference: BASIC
  6. Technical reference: TECH
  7. Developer's guide: DEV
  8. Acknowledgemets: CREDITS
  9. Licenses: LICENSE
Clone this wiki locally