• Curve the value t (0-1) along the fourth quadrant of a rounded square/circle. (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 = 2

      How rounded the square/circle is.

      • 1 — linear/a diamond
      • 2 (default) — a circle
      • Further reduces the curve's portion of the square

      Also see:

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

      See this suite of curves graphed on desmos

    Returns number

Generated using TypeDoc