[libavg-devel] Patch: Continuous Animation

trollicious at lulzmeister.de trollicious at lulzmeister.de
Tue Sep 25 22:04:23 CEST 2007


Hello,
when working on an app using libavg, I noticed I needed a feature which
could very well be part of the anim module, so I just implemented it:

ContinuousAnim allows animations without a duration or end state, only
the speed must be given.
This is especially useful for continuous rotation.
usage example:
...=anim.ContinuousAnim(ball,"angle",0,math.pi,False)
results in a rotated node 180° every second, which will not be stopped
until the abort() method is called.

I was not sure if i should inherit from SimpleAnim, so I just did it ;)

Please have a look at it and feel free to criticise anything.


Best Regards,
Martin Heistermann


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ContinuousAnim.patch
Type: text/x-diff
Size: 1728 bytes
Desc: not available
Url : http://mail.datenhain.de/pipermail/libavg-devel/attachments/20070925/59aff7e6/ContinuousAnim.bin


More information about the libavg-devel mailing list