Table of Contents

Method GetLerp

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

GetLerp(TColor, TColor, Func<TColor, TColor, float, TColor>)

Returns a gradient that represents a linear interpolation between two colors.

public static Gradient<TColor> GetLerp(TColor color1, TColor color2, Func<TColor, TColor, float, TColor> lerp)

Parameters

color1 TColor
color2 TColor
lerp Func<TColor, TColor, float, TColor>

Returns

Gradient<TColor>