Table of Contents

Method GetLerp

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

GetLerp(ColorHSL, ColorHSL)

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

public static GradientHSL GetLerp(ColorHSL color1, ColorHSL color2)

Parameters

color1 ColorHSL

The left end of the gradient.

color2 ColorHSL

The right end of the gradient.

Returns

GradientHSL

A GradientHSL that represents a linear interpolation between color1 and color2.