Variable interpolationConst

interpolation: {
    angle: ((a, b, p) => number);
    array: ((a, b, p) => number[]);
    color: ((a, b, p) => number);
    scalar: ((a, b, p) => number);
} = ...

Interpolation functions with a signature of (fromValue, toValue, easedProgress)

Type declaration

  • angle: ((a, b, p) => number)
      • (a, b, p): number
      • Linear interpolation between angles a and b, using fraction p

        Parameters

        • a: number
        • b: number
        • p: number

        Returns number

  • array: ((a, b, p) => number[])
      • (a, b, p): number[]
      • Linear interpolation between arrays a and b, using the fraction p

        Parameters

        • a: number[]
        • b: number[]
        • p: number

        Returns number[]

  • color: ((a, b, p) => number)
      • (a, b, p): number
      • Linear interpolation between RGB colors a and b, using the fraction p

        Parameters

        • a: number
        • b: number
        • p: number

        Returns number

  • scalar: ((a, b, p) => number)
      • (a, b, p): number
      • Linear interpolation between numbers a and b, using the fraction p

        Parameters

        • a: number
        • b: number
        • p: number

        Returns number

Generated using TypeDoc