Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - swapcolors() exchange standard and enhanced colors http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 swapcolors()        Exchange standard and enhanced colors
------------------------------------------------------------------------------
 Declaration
   color.hdr

 Syntax
   proc swapcolors extern

 Arguments
   None.

 Return
   None.

 Description
   This procedure exchanges the contents of the two system color variables
   __syscolor[ CLR_STD ] and __syscolor[ CLR_ENHCD ].

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_swapcolors
   swapcolors()
   @ 10, 10 ?? "FooFoo"         // this will be displayed in enhanced color
   swapcolors()
   @ 12, 10 ?? "BlaBla"         // this will be displayed in standard color
   endproc

   proc main
   Test_swapcolors()
   endproc

See Also: __syscolor invcolor()

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