meo-canvas - v9.0.1
    Preparing search index...

    Function interpolate

    • Interpolates across a keyframe track: stops are the positions, values what to be at each.

      Values hold outside the declared range rather than extrapolating, which is what a keyframe track means — the first and last frames are states, not the start of a slope.

      Type Parameters

      Parameters

      • t: number
      • stops: readonly number[]
      • values: readonly T[]
      • options: { ease?: Easing } = {}

      Returns T

      interpolate(0.25, [0, 0.5, 1], [0, 100, 0])                    // 50
      interpolate(0.5, [0, 1], ['#000000', '#ffffff']) // '#808080'