starry-math
    Preparing search index...

    Function generateBezier

    • Generates a cubic Bezier easing function based on control points

      Parameters

      • x0: number

        The x-coordinate of the first control point

      • y0: number

        The y-coordinate of the first control point

      • x1: number

        The x-coordinate of the second control point

      • y1: number

        The y-coordinate of the second control point

      Returns (t: number) => number

      The cubic Bezier easing function