home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume11 / reve / part05 / color.h < prev    next >
Text File  |  1990-11-15  |  2KB  |  41 lines

  1.  
  2. /*  @(#)color.h 1.3 90/09/24
  3.  *
  4.  *  Colormap definitions used by reve.
  5.  *
  6.  *  Copyright (C) 1990 - Rich Burridge & Yves Gallot.
  7.  *  All rights reserved.
  8.  *
  9.  *  Permission is given to distribute these sources, as long as the
  10.  *  introductory messages are not removed, and no monies are exchanged.
  11.  *
  12.  *  You are forbidden from using Reve as is, or in a modified state, in
  13.  *  any tournaments, without the permission of the authors.
  14.  *
  15.  *  No responsibility is taken for any errors or inaccuracies inherent
  16.  *  either to the comments or the code of this program, but if reported
  17.  *  (see README file), then an attempt will be made to fix them.
  18.  */
  19.  
  20. #define  OTH_COLOR      "othcolor"
  21. #define  OTH_COLORSIZE  8
  22.  
  23. #define  C_WHITE    0
  24. #define  C_LGREY    1
  25. #define  C_LBROWN   2
  26. #define  C_BEIGE    3
  27. #define  C_DBROWN   4
  28. #define  C_BLACK    5
  29. #define  C_SPARE6   6
  30. #define  C_SPARE7   7
  31.  
  32. #define oth_colorsetup(r, g, b) \
  33.         (r)[C_WHITE] = 255 ;  (g)[C_WHITE] = 255 ;  (b)[C_WHITE] = 255 ; \
  34.         (r)[C_LGREY] = 200 ;  (g)[C_LGREY] = 200 ;  (b)[C_LGREY] = 200 ; \
  35.         (r)[C_LBROWN] = 200 ; (g)[C_LBROWN] = 150 ; (b)[C_LBROWN] = 100 ; \
  36.         (r)[C_BEIGE] = 255 ;  (g)[C_BEIGE] = 240 ;  (b)[C_BEIGE] = 220 ; \
  37.         (r)[C_DBROWN] = 185 ; (g)[C_DBROWN] = 145 ; (b)[C_DBROWN] = 100 ; \
  38.         (r)[C_BLACK] = 0 ;    (g)[C_BLACK] = 0 ;    (b)[C_BLACK] = 0 ; \
  39.         (r)[C_SPARE6] = 0 ;   (g)[C_SPARE6] = 0 ;   (b)[C_SPARE6] = 0 ; \
  40.         (r)[C_SPARE7] = 0 ;   (g)[C_SPARE7] = 0 ;   (b)[C_SPARE7] = 0 ;
  41.