Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>showclrs() color function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  SHOWCLRS()                                                  Color Function
 Purpose..: Display all color combinations
-------------------------------------------------------------------------------
 Syntax...: ShowClrs( <nX>, <nY> [, <cType>] ) --> NIL

 Arguments: <nX>         = Top row.
            <nY>         = Left column.
            [<cType>]    = ASCII character to display when
                           the color table is drawn. It is used to
                           display the difference between
                           the foreground/background combination.

 Returns..: NIL

 Remark...: The function is essential to MkClrTable()
            which uses the color table. You can use it to
            create a function such as ColourPick(), in the demo,
            from which you can pick and return a color string.

 Source...: SHOWCLRS.C
-------------------------------------------------------------------------------
 Example..: The example uses the function
            to set up a color table using "." or chr( 249 )
            as the character for the color table.

            ShowClrs( nX, nY, chr( 249 ) )

See Also: ClrTable() MkClrTable()

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