[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
 GETVGAPAL()
 Determines the palette settings on a VGA card
------------------------------------------------------------------------------
 Syntax
     GETVGAPAL(<nColor|cColor>,<cRGB>)
         --> nPaletteValue
 Arguments
     <nColor>|<cColor>  Designates a color represented by a number in the
     range of 0 to 15, or a color code that corresponds to the one in SET
     COLOR TO.
     <cRGB>  May designate as R, G, or B to determine the corresponding
     palette value.
 Returns
     GETVGAPAL() returns the red, green, or blue palette value for the
     designated color.  When invalid paramerters are specified, a value of -1
     is returned.
 Description
     On a VGA adapter, each color is a combination of the three values for
     red, green and blue.  Each value can be in the range of 0 to 63, to
     permit you to install different color palettes.
     GETVGAPAL() queries the R, G, and B values for all 16 colors.  The
     individual color can be a number in the range of 0 to 15, or represented
     as a color code corresponding to the CA-Clipper SET COLOR TO.
 Note
     .  This function is implemented in the enclosed Colorpal.prg
        program.
 Example
     Determines the palette value of red in the color cyan:
     GETVGAPAL("BG", "R")
See Also:
VGAPALETTE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson