Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_setpalet()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_SETPALET()


Syntax:        L_SETPALET(<expN>)


Purpose:       Sets graphics mode 4 color pallete.


Arguments:     <expN> is the palette to select.
               This value should evalute to either 0 or 1.


Returns:        0 = Successful
               -1 = Syntax error


Usage:         This function is only valid in 4 colour graphics modes.
               These modes only have a resolution of 320 x 200 pixel.

               The palette is a selection of colours which are
               available for use and which may be on the screen at any
               one time

               Palettes, pixel values and colours available for
               selection are:-

               1st Palette 0
                Pixel value      Colour

                    0            Background
                    1            Green
                    2            Red
                    3            Yellow or brown


               2nd Palette 1
                Pixel vlaue      Colour

                    0            Background
                    1            Cyan
                    2            Magenta
                    3            White



Examples:      * Select 2nd palette
               L_SETPALET(1)


Notes:          Changing the palette after graphics have been drawn on
               the screen will change all the previously selected
               colors.


Language:      Assembler

See Also: L_GMODE()

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