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.generateExponential() #619

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Easing.generateExponential() #619

wants to merge 3 commits into from

Conversation

trusktr
Copy link
Member

@trusktr trusktr commented Aug 2, 2021

Given a value of 300, this is very close Easing.Exponential, but it will hit 0 when amount is 0, therefore being an alternative to Exponential to avoid the jump issue mentioned in #116.

I haven't tried to simplify the formulas yet. Also, could there be a better formula?

The video shows how similar the two are:

similar.mp4
  • Add tests
  • Add docs

@MasatoMakino Wdyt?

Given a value of 300, this is very close Easing.Exponential, but it will hit 0 when amount is 0, therefore being an alternative to Exponential to avoid the jump issue mentioned in #116.
…onential(300)` to show how similar they are
@MasatoMakino
Copy link
Contributor

Great idea! I couldn't come up with that function.
If you plan to add testing as well, I have nothing to comment on.

@trusktr trusktr linked an issue Apr 23, 2023 that may be closed by this pull request
@trusktr trusktr changed the base branch from master to main July 8, 2023 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tween jumps (jitters) to the final value at the end of animation
2 participants