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

Add startTime and endTime #3

Open
lassoan opened this issue May 20, 2021 · 0 comments
Open

Add startTime and endTime #3

lassoan opened this issue May 20, 2021 · 0 comments

Comments

@lassoan
Copy link

lassoan commented May 20, 2021

Thanks a lot for this convenient package!

Could you add startTime and endTime options so that we can easily assemble more complex animations just by adding multiple functions? If time<startTime then the function would return start value; if time>endTime then function would return end value.

Example:

expandScaleFactors = easing_functions.CircularEaseInOut(start=1, end=2, startTime=0.0, endTime=2.0)
contractScaleFactors = easing_functions.CircularEaseInOut(start=0, end=-1, startTime=4.0, endTime=6.0)
...
scaleFactor = expandScaleFactors(t) + contractScaleFactors(t)
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

No branches or pull requests

1 participant