Share via


Color.Lerp Method

Linearly interpolate a color.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

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

Parameters

  • value1
    A four-component color.
  • value2
    A four-component color.
  • amount
    Interpolation factor.

Return Value

A four-component color.

See Also

Reference

Color Structure
Color Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7