Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 21 - QuickDraw 3D Color Utilities / QuickDraw 3D Color Utilities Reference
QuickDraw 3D Color Utilities /


Q3ColorRGB_Luminance

You can use the Q3ColorRGB_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
The Q3ColorRGB_Luminance function returns, as its function result and in the luminance parameter, the luminance of the color specified by the color parameter. A color's luminance is computed using this formula:

luminance =
(0.30078125 color.r) + (0.58984375 color.g) + (0.109375 color.b)


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help