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 - setcolors() set color attributes http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setcolors()         Set color attributes
------------------------------------------------------------------------------
 Declaration
   color.hdr

 Syntax
   proc setcolors extern
   param value uint uColorStandard, ;
         value uint uColorEnhanced, ;
         value uint uColorScoreboard

 Arguments
   uColorStandard is the standard color attribute.

   uColorEnhanced is the enhanced color attribute.

   uColorScoreboard is the scoreboard color attribute.

 Return
   None.

 Description
   The setcolors function sets color attributes for standard display,
   enhanced display, and for the scoreboard.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_setcolors
   vardef
      char( 15 ) cName
   enddef
   cName := "Veronica"
   setcolors( CYAN_BLUE, WHITE_BLACK, BLACK_YELLOW )
   set scoreboard on
   clear
   @ 5, 5 get cName
   read
   endproc

   proc main
   Test_setcolors()
   endproc

See Also: __syscolor set color to

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