Builds the CSS cubic-bezier(x1, y1, x2, y2) curve.
The curve is parametric, so drawing it at a given time means first finding the parameter whose x
equals that time. Newton's method converges in a few steps for well-behaved curves; a bisection
fallback covers the steep ones, where the derivative approaches zero and Newton stalls.
Builds the CSS
cubic-bezier(x1, y1, x2, y2)curve.The curve is parametric, so drawing it at a given time means first finding the parameter whose x equals that time. Newton's method converges in a few steps for well-behaved curves; a bisection fallback covers the steep ones, where the derivative approaches zero and Newton stalls.