Collapse AllExpand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++
|
[TCheckBoxFormControlObj]C#
[TCheckBoxFormControlObj]Visual Basic
[TCheckBoxFormControlObj]
DPSF API Documentation
|
..LerpColor Method (Color, Color, Single, Single, Single, Single)
|
|
Returns the linearly interpolated Color between Color 1 and Color 2
Namespace: DPSF
Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0
Syntax
C#
|
public static Color LerpColor(
Color sColor1,
Color sColor2,
float fRInterpolationAmount,
float fGInterpolationAmount,
float fBInterpolationAmount,
float fAInterpolationAmount
)
|
Visual Basic
|
Public Shared Function LerpColor (
sColor1 As Color,
sColor2 As Color,
fRInterpolationAmount As Single,
fGInterpolationAmount As Single,
fBInterpolationAmount As Single,
fAInterpolationAmount As Single
) As Color
|
Visual C++
|
public:
static Color LerpColor(
Color sColor1,
Color sColor2,
float fRInterpolationAmount,
float fGInterpolationAmount,
float fBInterpolationAmount,
float fAInterpolationAmount
)
|
Parameters
sColor1
Type: Color
The Color value used with InterpolationAmount 0.0
sColor2
Type: Color
The Color value used with InterpolationAmount 1.0
fRInterpolationAmount
Type: System..::..Single
A value between 0.0 and 1.0 indicating how much to interpolate the Red value between Color 1 and Color 2
fGInterpolationAmount
Type: System..::..Single
A value between 0.0 and 1.0 indicating how much to interpolate the Green value between Color 1 and Color 2
fBInterpolationAmount
Type: System..::..Single
A value between 0.0 and 1.0 indicating how much to interpolate the Blue value between Color 1 and Color 2
fAInterpolationAmount
Type: System..::..Single
A value between 0.0 and 1.0 indicating how much to interpolate the Alpha value between Color 1 and Color 2
Return Value
Type: Color
Returns the interpolated Color
See Also
DPSFHelper Class
DPSFHelper Members
LerpColor Overload
DPSF Namespace
Send comments on this topic to
Dan@DansKingdom.com
|