Function instantUsingIndex

  • Given an Array of values, find a value using t (which goes from 0 to 1), by using t to estimate the index of said value in the array of values

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

    Returns

    Interpolated numbers at different instances

    Source

    Source code of instantSequence

    Type Parameters

    Type Parameters

    • T

    Parameters

    • t: number

      A number between 0 to 1

    • values: T[]

      Array of numbers to interpolate between

    Returns T

Generated using TypeDoc