Table of Contents

Method GetLerp

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

GetLerp(float, float, Color, Color)

Creates a ResponseCurveColor that linearly interpolates between two colors over a given input range.

public static ResponseCurveColor GetLerp(float x0, float x1, Color y0, Color y1)

Parameters

x0 float

The minimum input value.

x1 float

The maximum input value.

y0 Color

The output color at x0.

y1 Color

The output color at x1.

Returns

ResponseCurveColor

A new ResponseCurveColor.