Interpolator

interface Interpolator<T : Color>

An interpolator between two or more colors.

Build an instance of this class with interpolator.

Functions

Link copied to clipboard
abstract fun interpolate(t: Number): T

Create a new interpolated number

Link copied to clipboard
fun <T : Color> Interpolator<T>.sequence(length: Int): Sequence<T>

Create a sequence of length colors evenly spaced along this interpolator's values