Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> palette select grahpics color palette pp 165</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PALETTE                Select Grahpics Color Palette                 pp 165

 Syntax:  Palette (NumVar) ;

 Type:    Integer

 Form:    Graphics Procedure

 Purpose: Select graphics color palette from range of 0 thru 3.

 Notes:   Four palettes exist, numbered 0 through 3.  Each palette
          consists of four colors, designated as 0 through 3.
          Color 0 is always the background color.

                     Color 0      Color 1       Color 2        Color 3

          Palette 0  Background   Green         Red            Brown
          Palette 1  Background   Cyan          Magenta        LightGray
          Palette 2  Background   LightGreen    LightRed       Yellow
          Palette 3  Background   LightCyan     LightMagenta   White


 Usage:
       BEGIN
          GraphColorMode ;         { Set 320x200 medium resolution mode }
          Palette (0)    ;         { Set palette 0                      }
       END.

See Also: ColorTable GraphBackGround

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