[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    egPalette()

         Gets/Sets the RGB values in a single palette

    Syntax:

         egPalette( nPalette, [cNewPalette] ) -> cOldPalette

         nPalette    : The palette number to use. ( Values allowed: 0 - 15 )

         cNewPalette : A 48 byte string indicating the red, green and blue
                       attributes of each colour in the palette.

                          Attribute 0                 Attribute 15
                        Red Green Blue   ... ...   Red Green Blue

                      where Red, Green and Blue are a byte each with a
                      value between 0 and 63 ( From Chr(0) to Chr(63) ).

    Description:

         egPalette() lets change or inform about one of the 16 system
         palettes.

    Return:

         A 48 byte string that informs about the RGB attributes of each
         colour of the palette.

    Example:

        cPalette := Replicate( Chr(0) + Chr(0) + Chr(63), 16 )
        egPalette( 7, cPalette )
        egPalNo( 7 )

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