Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>colorinit()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
COLORINIT()

    This function is best called at the top of your program to determine
    whether to use color or monochrome settings.

    Syntax

    COLORINIT( [<whatever>] )

    Parameter

    <whatever> can either be a logical or character expression.  There
    are three possibilities:

    1) If you do not pass a parameter, COLORINIT() will go with whatever
       ISCOLOR() returns.  If ISCOLOR() tests True, color settings will
       be used.  If it tests False, monochrome settings will be used.

    2) If you pass a logical, COLORINIT() will use color for True or
       monochrome for False.

    3) If you pass a filename, COLORINIT() will load previously saved
       color settings from that file and use those instead of anything
       else.  It will use the first byte of that file to determine
       whether to use color/mono (see COLORMOD() for more info).
       In addition, this filename will be retained for future use by
       COLORMOD() if it becomes necessary to save color changes.

    Sample Usage

    COLORINIT()       // use ISCOLOR() setting             
    COLORINIT(.F.)    // force monochrome settings         
    COLORINIT('colors.gf')  // load defaults from COLORS.GF

See Also: COLORMOD() COLORSET()

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