Color.Lerp Method (Microsoft.Xna.Framework)
Performs linear interpolation of Color.
- 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.ColorInterpolated Color.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web