Skip to content

Add startTime and endTime #3

@lassoan

Description

@lassoan

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions