-
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.
-
attribis a numeric expression from[0 to 63]. -
coloris 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.
-
attriborcolourhas a string value: Type mismatch. -
attriborcolouris not in[0 to 32767]: Overflow -
attriborcolouris not in range: 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: