NAME PALETTE, PALETTE USING Statements SYNOPSIS PALETTE [attribute%,color&] PALETTE USING arrayname#[(index%)] o attribute% The color attribute to change. o color& A color value to assign to an attribute. o arrayname# An array of color values to assign to the current screen mode's set of attributes. The array must be large enough to assign colors to all the attributes. o index% The index of the first array element to assign to an attribute. o The available color attributes and values depend on your graphics adapter and the screen mode set by the most recent SCREEN statement. DESCRIPTION Change the color assignments of color attributes in the current screen mode. PALETTE and PALETTE USING work only on systems equipped with EGA, VGA, or MCGA adapters. Example: 'This example requires a color graphics adapter. PALETTE 0, 1 SCREEN 1 FOR i% = 0 TO 3: a%(i%) = i%: NEXT i% LINE (138, 35)-(288, 165), 3, BF LINE (20, 10)-(160, 100), 2, BF DO FOR i% = 0 TO 3 a%(i%) = (a%(i%) + 1) MOD 16 NEXT i% PALETTE USING a%(0) LOOP WHILE INKEY$ = "" SEE ALSO COLOR SCREEN Statement Color Attributes Screen Modes