Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>palette using change many colors in the palette</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PALETTE USING            Change Many Colors in the Palette

 PALETTE USING intarray (arrayindex)

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

    intarray    An integer array that containing the new colors in the
                palette. The array must consist of at least 16 elements.

  arrayindex    The starting index of intarray of where the new colors
                begin. Most of the time this value will be 0.

                    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 the value of an array entry is -1, then the paired
                attribute is not affected. Any other negative value is
                illegal.

                Changing the palette will affect the current screen colors
                immediately. Text or graphics on the screen will not be
                destroyed.


See Also: COLOR DRAW PALETTE SCREEN (Statement)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson