• Curve the value t exponentially (IE, starts gentle, ends steep)

    Parameters

    • from: number

      Rather than starting the curve at 0, start it here

    • to: number

      Rather than ending the curve at 1, end it here

    • t: number

      A decimal value from 0 to 1 representing how far along the curve's x axis to return the y position of

    • steepness: number = 4

      A value representing how steep the curve should be. Defaults to 4 (this value does not behave the same as it does for logarithmicLerp)

      Also see:

      • logarithmicLerp — Steep to gentle, logarithmically
      • curve2 — Steep to gentle, shaped like the circumference of a quarter circle
      • curve4 — Gentle to steep, shaped like the circumference of a quarter circle

      See this suite of curves graphed on desmos

    Returns number

Generated using TypeDoc