Details
-
Suggestion
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
5d3f3fdbd (dev)
Description
This would allow using Qt's predefined easing curves with FrameAnimation. For example, instead of the custom easing functions in this snippet, we could do something like this:
EasingCurve { id: easingCurve type: EasingCurve.InOutQuad } value: root.from + root.to * easingCurve.valueForProgress(root.progress)
or if we wanted to go with a simpler API, just make it a singleton:
value: root.from + root.to * EasingCurve.valueForProgress(root.progress, EasingCurve.InOutQuad)