Call Box Commands
Version 2.0 15 Jan-90


CALL PL the PALETTE commands

There are 4 commands that control color palettes. A color palette is 16 color values in a table. Each value in this table represents a color composed of different intensities of RED, GREEN and BLUE. You can have up to 16 of these tables accessable at one time depending on how the SCB's are set.

To set table number 3, entry number 6 to pure RED: CALL PL,0,3,6,15,0,0

To set table number 3, entry number 6 to pure GREEN: CALL PL,0,3,6,0,15,0

To set table number 3, entry number 6 to pure BLUE: CALL PL,0,3,6,0,0,15

COMMAND FUNCTION DESCRIPTION
CALL PL,0,(tbl),(ent),R,G,B SET COLOR: Set the color specified by R,G,B in the table entry.
CALL PL,1,(tbl),(ent),R,G,B GET COLOR: Gets the color specified by the table entry in R,G,B.
CALL PL,2,(tbl) SET STANDARD PALETTE: Sets the table specified to the standard palette for this screen mode.
CALL PL,3,(tbl),"pathname" LOAD PALETTE: loads a palette specified by pathname.


(tbl)
A value 0 - 15 that represents the table number.

(ent)
A value 0 - 15 that represents the entry number.

R
A value 0 - 15 that represents the intensity of RED.

G
A value 0 - 15 that represents the intensity of GREEN.

B
A value 0 - 15 that represents the intensity of BLUE.

"pathname"
A ProDOS pathname for the palette to load.