Review Request: Added "pendulum" effect for plasma animations
Aaron J. Seigo
aseigo at kde.org
Wed Apr 7 19:40:02 CEST 2010
On April 7, 2010, you wrote:
> This patch generated a discussion which ended up on a cooler idea (thanks
> notmart, Savago and igorto!) that is providing two properties on the
> Animation class in order to set up the pendulum behavior ("attenuation"
> for the amount of delta value decrement between each bounce step and
> "bounceCenter" to define from which point the target widget shall have the
> same distance throughout the whole animation).
this is just an easing curve, no? only it's hardcoded into Animation. and so
every time we'd want another behaviour, we'd end up harcoding another curve
method into Animation?
Animation alreay has support for QEasingCurve. the attached patch makes it
easier to use (with an example of how Rotation was modified; all the classes
would need this modification though.)
then this pedulum behaviour could become a QEasingCurve implementation. the
next question becomes: do we want to offer a Animator::easingCurve(..) method?
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libplasma_easinganimation.diff
Type: text/x-patch
Size: 4938 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100407/c2070ee2/attachment.diff
More information about the Plasma-devel
mailing list