Function interpolateSequence

  • Given an Array of items, find an item using t (which goes from 0 to 1), by using t to estimate the index of said value in the array of values, then expand that to encompass multiple t's in an Array, which returns Array items which each follow the interpolated index value

    This is meant for interplolating strings that aren't number-like

    Returns

    Array of Interpolated input Array items at different instances

    Source

    Source code of interpolateSequence

    Type Parameters

    Type Parameters

    • T

    Parameters

    • arr_t: number[]

      Array of numbers (between 0 to 1) which each represent an instant of the interpolation

    • values: T[]

      Array of items to choose from

    Returns T[]

Generated using TypeDoc