Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easing functions #4630

Merged
merged 4 commits into from
Jun 6, 2024
Merged

Easing functions #4630

merged 4 commits into from
Jun 6, 2024

Conversation

emilk
Copy link
Owner

@emilk emilk commented Jun 6, 2024

This adds most of the "standard" easing functions from https://easings.net/ to emath::easing, and adds helpers in egui for using them.

In particular there is now ctx.animate_bool_with_easing and ctx.animate_bool_responsive, that uses a cubic easing function.

All animations in egui now uses cubic ease-out, for a more responsive feeling (fast at the start, slower towards the end).

@emilk emilk added emath Relates to the emath crate egui labels Jun 6, 2024
@emilk emilk merged commit 29b12e1 into master Jun 6, 2024
35 of 37 checks passed
@emilk emilk deleted the emilk/easing branch June 6, 2024 11:09
@emilk emilk added the feature New feature or request label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui emath Relates to the emath crate feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant