# | 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) (470. * bright(col)) |
51 | > | #define D65EFFICACY 203. /* luminous efficacy of D65 */ |
52 | > | #define luminance(col) (D65EFFICACY * bright(col)) |
53 | ||
54 | #define intens(col) ( (col)[0] > (col)[1] \ | |
55 | ? (col)[0] > (col)[2] ? (col)[0] : (col)[2] \ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |