[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 VGAPALETTE()
 Changes VGA palette colors
------------------------------------------------------------------------------
 Syntax

     VGAPALETTE([<cColor|nColor>, [<nRedValue>,
        <nGreenValue>, <nBlueValue>]]) --> lValid

 Arguments

     <cColor|nColor>  Designates the color to change as a CA-Clipper
     color code or in the range of 0 to 15.  If no RGB value is specified,
     the color palette is reset to its default value.

     <nRedValue>  Designates the palette setting for the red portion in
     the range of 0 to 63.

     <nGreenValue>  Designates the palette setting for the green portion
     in the range of 0 to 63.

     <nBlueValue>  Designates the palette setting for the blue portion in
     the range of 0 to 63.

     ()  When the function is called without parameters, the palettes for all
     colors are reset to their default values.

 Returns

     VGAPALETTE() returns .T. when the selected setting is successfully
     implemented.

 Description

     A VGA card offers a larger color selection for the palette than the EGA
     adapter.  The three basic colors to add color synthesis are red, green,
     and blue.  With the <nRedValue> through <nBlueValue> parameters, the
     intensity for each of these three colors is set, and different color
     combinations can result.  You can assign one color mix to one or more of
     the SET COLOR TO <cColor|nColor> installed colors.

     If only the color is designated as a parameter, then the accompanying
     palette is reset to its default value.  When you call the function
     without parameters, all the palettes are reset.

 Note

     .  The FONTRESET() function resets all color palettes.

 Examples

     .  Show a lot of red, a little green, and some blue as a new
        setting for color 3:

        ? VGAPALETTE("BG", 60, 4, 10)      // .T., when accepted

     .  Reset the red palette:

        VGAPALETTE("R")

     .  Reset all palettes:

        VGAPALETTE()


See Also: EGAPALETTE() FONTRESET()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson