friction2d / friction

Friction Graphics
https://friction.graphics
GNU General Public License v3.0
295 stars 15 forks source link

Easing: add basic support #228

Closed rodlie closed 2 months ago

rodlie commented 3 months ago

So, this has already been done in branch easing, just forgot to make a issue.

Easing has been traditionally restricted to the expression editor (includes a dedicated easing tab), requiring advanced user knowledge. We've simplified this by introducing user-friendly easing options in the timeline and graph. Simply select your keyframes and choose the desired easing option.

Easing actions will be available in the graph, timeline and command palette.

easy1 easy2 easy3 easy4

rodlie commented 3 months ago

Merged into main.

irwant commented 2 months ago

How to make the keyframe back to the linear ? There are no way to back into linear except manual.

rodlie commented 2 months ago

Don't understand the question (you want a linear option in the menu?).

rodlie commented 2 months ago

Btw, there is a small undo bug with this feature, you will have to undo twice to go back. This is because the easing process requires two steps, one to calculate and one to apply, both steps are recorded in the undo.

EDIT: Actually, this is not a bug (at least not in this feature).