Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RLIB 3.0a Reference - <b>function:</b> bright() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function:    BRIGHT()

Purpose:     Convert a Clipper color string to its bright equivalent.

Syntax:      BRIGHT( [color] )

Arguments:   color       - Optional character string indicating the color
                           setting from which to extract the bright
                           portion.  If omitted, the current color setting
                           returned by SETCOLOR() is used.

Returns:     A character string indicating the bright color setting.  This
             bright color setting is created by extracting the standard
             part of the color setting and adding a '+' onto the
             foreground part.

Description: BRIGHT() returns the bright color attribute setting for
             either the current color, or the optionally supplied color
             parameter.  This is useful for switching around color
             combinations without having to clutter up your code with all
             that SUBSTR(SUBSTR(...  garbage.

Notes:       If the standard color setting foreground is white, then
             BRIGHT() makes the high intensity color Yellow (GR+) instead
             of bright white.  This was done out of preference and remains
             for compatibility with RLIB version 2.0.

Example:     *-- save incoming color, then get bright portion
             save_color = SETCOLOR(BRIGHT())
             CENTER(10,'*** TRY AGAIN ***')
             SETCOLOR(save_color)

Source:      RL_BRIGH.PRG

See also:    GETPARM()

See Also: GETPARM()

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