Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Technical Reference - <b>_grgbcolorset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _gRGBColorSet()
 Set the color for a particular palette index
------------------------------------------------------------------------------
 C Prototype

     #include "llibg.api"
     ERRCODE _gRGBColorSet(
                            int iPalNum,
                            DWORD dwColorSet
                          )

 Arguments

     iPalNum is the palette index for color, beginning with one (1), that
     you want to define.

     dwColorSet is the color.  The range of valid values is limited to
     the number of colors available in the selected video mode.  For example,
     in 16-color modes, valid values are between zero and 15, and in 256-
     color modes, valid values are between zero and 255.

 Returns

     SUCCESS if successful; otherwise, an error code.

 Description

     _gRGBColorSet() sets a single color for the specified palette.  This
     function is similar to _gPalSet() but instead of setting the entire
     palette, it sets only one color.

 Files   Library is LLIBG.LIB, header file is Llibg.api.


See Also: _gPalSet() _gRGBColorGet()

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