Table of Contents

Method Lerp

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

Lerp(TColor, TColor, float)

Linearly interpolates between the two given samples.

protected override TColor Lerp(TColor outputSampleMin, TColor outputSampleMax, float t)

Parameters

outputSampleMin TColor

The value when t is less than or equal to 0.

outputSampleMax TColor

The value when t is greater than or equal to 1.

t float

The fraction of the minimum sample to use.

Returns

TColor