Skip to content

Delegate Lerp<T>

Definition

Namespace: StardewUI.Animation
Assembly: StardewUI.dll

Performs linear interpolation between two values.

public T Lerp<T>(T value1, T value2, float amount);

Type Parameters

T
The type of value.

Parameters

value1   T
The first, or "start" value to use at amount = 0.0.

value2   T
The second, or "end" value to use at amount = 1.0.

amount   Single
The interpolation amount between 0.0 and 1.0.