home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / source / radsrc22 / src / px / pic.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-12  |  402 b   |  19 lines

  1. /* Copyright 1988 Regents of the University of California */
  2.  
  3. /* SCCSid "@(#)pic.h 2.1 11/12/91 LBL" */
  4.  
  5. /* the following three structures are used by ciq */
  6.  
  7. typedef int colormap[3][256];
  8.  
  9. typedef unsigned char pixel;
  10.  
  11. typedef struct {
  12.     pixel r,g,b;
  13. } rgbpixel;
  14.  
  15. #define  rgb_bright(p)        (int)((77L*(p)->r+151L*(p)->g+28L*(p)->b)/256)
  16.  
  17. /* image resolution */
  18. extern int    xmax,ymax;
  19.