Skip to content

PALETTE

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

PALETTE


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.

Parameters

  • attrib is a numeric expression from [0 to 63].
  • color is a numeric expression between [0 and 255]

Notes

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.

Errors

  • attrib or colour has a string value: Type mismatch.
  • attrib or colour is not in [0 to 32767]: Overflow
  • attrib or colour is not in range: 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