d3-ease icon indicating copy to clipboard operation
d3-ease copied to clipboard

Cubic Bézier easing?

Open mbostock opened this issue 10 years ago • 1 comments

See mbostock/d3#1982. The only problem is that it’s kind of a pain to evaluate a cubic Bézier for y given x (rather than t), so it probably requires a numerical solution.

mbostock avatar Jun 11 '15 05:06 mbostock

I've implemented a new function here https://observablehq.com/d/e7d4fef33e304f2b Compared to a reference implementation: we get the same speed, and, unless I'm mistaken, our results are more accurate for the limiting cases of x1=0 and y1=1.

Fil avatar Jul 05 '20 08:07 Fil