Q3ColorRGB_Luminance
You can use theQ3ColorRGB_Luminance
function to compute the luminance of a color.
float *Q3ColorRGB_Luminance ( const TQ3ColorRGB *color, float *luminance);
color
- An RGB color structure.
luminance
- On exit, the luminance of the specified color.
DESCRIPTION
TheQ3ColorRGB_Luminance
function returns, as its function result and in theluminance
parameter, the luminance of the color specified by thecolor
parameter. A color's luminance is computed using this formula:luminance =
(0.30078125color.r
) + (0.58984375color.g
) + (0.109375color.b
)
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help