Color.Lerp Method
Linearly interpolate a color.
Syntax
'Declaration
Public Shared Function Lerp ( _
value1 As Color, _
value2 As Color, _
amount As Single _
) As Color
public static Color Lerp (
Color value1,
Color value2,
float amount
)
public:
static Color Lerp(
Color value1,
Color value2,
float amount
)
Parameters
- value1
Type: Color
A four-component color. - value2
Type: Color
A four-component color. - amount
Type: Single
Interpolation factor.
Return Value
Type: Color
A four-component color.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Color Structure
Color Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone