collapse_all

expand_all

collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]
Visual C++

DPSF API Documentation

DPSFHelper
.
.
::
..LerpColor Method (Color, Color, Single, Single, Single, Single)
gradient

Returns the linearly interpolated Color between Color 1 and Color 2

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0

collapse_allSyntax

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

collapse_allSee Also

DPSFHelper Class

DPSFHelper Members

LerpColor Overload

DPSF Namespace

footer

Send comments on this topic to

Dan@DansKingdom.com