[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PALETTE                  Change Color in the Palette

 PALETTE [attribute, color]

    Changes a color in the palette. This statement can be used only with
    the Enhanced Graphics Adapter (EGA).

   attribute    Represents a color in the palette. The range of values
                depends on the screen mode (see below).

       color    Actual display color. The range of values depends on the
                screen mode (see below).

                             Attribute and Color Ranges

                Mode          Monitor        Attribute           Color
                 0            Mono/MDA         N/A                N/A
                              Mono/EGA         0-15               0-2
                              Color/CGA        N/A                0-31
                              Color/EGA        0-31               0-15
                 1            Color/CGA        N/A                0-3
                              Color/EGA        0-3                0-15
                 2            Color/CGA        N/A                0-1
                              Color/EGA        0-1                0-15
                 7            Color/EGA        0-15               0-15
                 8            Color/EGA        0-15               0-15
                 9            EGA (64K)        0-3                0-15
                              EGA (>64K)       0-15               0-63
                10            Mono/EGA         0-3                0-8

   --------------------------------------------------------------------------

      Notes:    If no arguments are specified, the palette is set to its
                predefined default colors.

                Changing the PALETTE affects the current screen colors
                immediately. Text or graphics on the screen will not be
                destroyed.

See Also: COLOR DRAW PALETTE USING Color Chart
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson