ColorOperator.Lerp(Color,Color,Single) Method (Microsoft.DirectX.Direct3D)

Creates a color value using linear interpolation.

Definition

Visual Basic Public Shared Function Lerp( _
    ByVal c1 As ColorLeave Site, _
    ByVal c2 As ColorLeave Site, _
    ByVal s As Single _
) As ColorLeave Site
C# public static ColorLeave Site Lerp(
    ColorLeave Site c1,
    ColorLeave Site c2,
    float s
);
C++ public:
static ColorLeave Site Lerp(
    ColorLeave Site c1,
    ColorLeave Site c2,
    float s
);
JScript public static function Lerp(
    c1 : ColorLeave Site,
    c2 : ColorLeave Site,
    s : float
) : ColorLeave Site;

Parameters

c1 System.Drawing.Color
A ColorLeave Site object that specifies the first source color.
c2 System.Drawing.Color
A ColorLeave Site object that specifies the second source color.
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.Drawing.Color
A ColorLeave Site object that represents the result of the linear interpolation.

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.