Skip to content

Cubic Bézier easing? #3

Description

@mbostock

See d3/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.

Activity

Fil commented on Jul 5, 2020

@Fil
Member

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.

self-assigned this
on Jul 10, 2020
added a commit that references this issue on Jul 22, 2020
6f23b27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions