Table of Contents

Class ByteInterpolator

Namespace
SharpConsoleUI.Animation
Assembly
SharpConsoleUI.dll

Interpolates between two byte values, clamped to [0,255].

public sealed class ByteInterpolator : IInterpolator<byte>
Inheritance
ByteInterpolator
Implements
Inherited Members
Extension Methods

Fields

Instance

Singleton instance.

public static readonly ByteInterpolator Instance

Field Value

ByteInterpolator

Methods

Interpolate(byte, byte, double)

Computes the interpolated value between from and to.

public byte Interpolate(byte from, byte to, double t)

Parameters

from byte
to byte
t double

Returns

byte