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_Lerp

You can use the Q3ColorRGB_Lerp function to interpolate two colors linearly.

TQ3ColorRGB *Q3ColorRGB_Lerp (
const TQ3ColorRGB *first, 
const TQ3ColorRGB *last, 
float alpha, 
TQ3ColorRGB *result);
first
An RGB color structure.
last
An RGB color structure.
alpha
An alpha value.
result
On exit, a pointer to an RGB color structure for the color that is the linear interpolation, by the specified alpha value, of the two specified colors.
DESCRIPTION
The Q3ColorRGB_Lerp function returns, as its function result and in the result parameter, a pointer to an RGB color structure that is linearly interpolated between the two colors specified by the first and last parameters. The alpha parameter specifies the desired alpha value for the interpolation.


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