Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RPCXLib 1.1 Graphic Library for Clipper - <b>r_getrgb() </b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 R_GetRGB() 
 Determines the composition of a specific colour (CLIPPER 5.XX ONLY)
------------------------------------------------------------------------------

 Syntax
        R_GetRGB ( nRegNr, @nRed, @nGreen, @nBlue )

 Parameters
        nRegNr          Number of the colour register of which the composition
                        has to be determined (range : 0-63)

        @nRed           Variable (BY REFERENCE !) to which the RED component
                        is returned (range : 0-63)

        @nGreen         Variable (BY REFERENCE !) to which the GREEN component
                        is returned (range : 0-63)

        @nBlue          Variable (BY REFERENCE !) to which the BLUE component
                        is returned (range : 0-63)

 Returns
        NIL             (The values are returned BY REFERENCE to the variables
                        nRed, nGreen and nBlue)

 Description
        R_GetRGB () determines the actual colour composition of a specific
        colour register. To determine the composition of the Clipper colours
        you may use the pre-defined register numbers in RPCXLib.CH.

 Example
        && Determine the components of the Clipper colour MAGENTA

        *-- RPCXLib definitions
        #include "RPCXLib.CH"

        LOCAL   nRed, nGreen, nBlue

        [...]

        R_GetRGB ( PL_MAGENTA, @nRed, @nGreen, @nBlue )

        ?'Magenta : RED ',nRed,' GREEN ',nGreen,' BLUE ',nBlue

See Also: R_DefPal() R_RestPal() R_SavePal() R_SetRGB()

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