Microsoft DirectX 9.0 SDK Update (October 2004)

ColorOperator.Lerp Method

Language:

Note: This documentation is preliminary and is subject to change.

Creates a color value using linear interpolation.

Overload List

public static Color Lerp(Color, Color, float);
public static ColorValue Lerp(ColorValue, ColorValue, float);
public static int Lerp(int, int, float);

Remarks

If linear interpolation is performed between the colors A and B, and s is 0, the resulting color is A. If s is 1, the resulting color is B.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center