Color.Lerp Method (Microsoft.Xna.Framework)

Performs linear interpolation of Color.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.400)
  • C#
  • VB
  • F#
public static Color Lerp(
	Color value1, 
	Color value2, 
	float amount
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

value1
Type: Microsoft.Xna.Framework.Color
Source Color.
value2
Type: Microsoft.Xna.Framework.Color
Destination Color.
amount
Type: System.Single
Interpolation factor.

Return Value

Type: Microsoft.Xna.Framework.Color
Interpolated Color.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web