home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / vifs / egargb.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-13  |  616 b   |  24 lines

  1. /*
  2.  *    egargb.h  --  ega rgb help file.
  3.  *
  4.  *    4 june 1989  Olle Olsson
  5.  */
  6.  
  7. #include <graphics.h>        /* for struct palettetype */
  8.  
  9. typedef struct            /* a screen color */
  10.     {
  11.     int r, g, b;        /* the components */
  12.     } rgb;
  13.  
  14.  
  15. void initshow( void );
  16. void endshow( void );
  17. void box( int x0, int y0, int x1, int y1, int color );
  18. int mkegacolor( rgb *color );
  19. void randrgb( rgb *color );
  20. void rgbtopal( rgb colors[], int ncolors, struct palettetype *ret_pal );
  21. void r_incdec( rgb *color, int increment_flag );
  22. void g_incdec( rgb *color, int increment_flag );
  23. void b_incdec( rgb *color, int increment_flag );
  24.