ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/color.h
(Generate patch)

Comparing ray/src/common/color.h (file contents):
Revision 1.8 by greg, Fri Dec 14 16:28:20 1990 UTC vs.
Revision 1.9 by greg, Mon Mar 18 09:32:49 1991 UTC

# Line 48 | Line 48 | typedef float  COLOR[3];       /* red, green, blue */
48   #define  normbright(c)          (int)((67L*(c)[RED]+168L*(c)[GRN]+21L*(c)[BLU])/256)
49   #endif
50  
51 + #define  luminance(col)         (683.0 * bright(col))
52 +
53   #define  intens(col)            ( (col)[0] > (col)[1] \
54                                  ? (col)[0] > (col)[2] ? (col)[0] : (col)[2] \
55                                  : (col)[1] > (col)[2] ? (col)[1] : (col)[2] )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines