Color.Lerp Method

Linearly interpolate a color.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework (in Microsoft.Xna.Framework.dll)

public static Color Lerp(
	Color value1,
	Color value2,
	float amount
)

Parameters

value1
Type: Microsoft.Xna.Framework.Color
A four-component color.
value2
Type: Microsoft.Xna.Framework.Color
A four-component color.
amount
Type: System.Single
Interpolation factor.

Return Value

Type: Microsoft.Xna.Framework.Color
A four-component color.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: