ColorOperator.Lerp Method
Language: Visual Basic .NET C# Managed C++ JScript .NET (Show All)
Note: This documentation is preliminary and is subject to change.
Creates a color value using linear interpolation.
Definition
Parameters
c1
System.Int32 .
c2
System.Int32 .
s
System.Single . Floating-point value that linearly interpolates between the colors c1 and c2 , treating them both as 4-D vectors. There are no limits on this parameter's value.
Return Value
System.Int32
.
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