<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I use a timed loop which is active when my app has focus and the mouse is within the view.</div><div class=""><br class=""></div><div class="">Pretty simple and it gives good results</div><div class=""><br class=""></div><div class="">You can see it in action here: <a href="http://stakepoint.com/" class="">http://stakepoint.com/</a></div><div class=""><br class=""></div><div class="">@+Maarten,</div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">Le 24 mai 2015 à 16:52, Stefan Salewski <<a href="mailto:mail@ssalewski.de" class="">mail@ssalewski.de</a>> a écrit :</div><br class="Apple-interchange-newline"><div class="">On Sun, 2015-05-24 at 16:17 +0200, Davide Calaminici wrote:<br class=""><blockquote type="cite" class="">i would like to know how to do a simple cairo animation.<br class=""></blockquote><br class="">Interactive or non interactive? Inside a GTK window? Have you already<br class="">drawn some desired graphics at all?<br class=""><br class="">I do admit that there are not many fine examples for cairo, but there<br class="">are some. With "cairo graphics animation" you should find some with an<br class="">arbitrary search engine. I can remember these pages:<br class=""><br class=""><a href="http://cairographics.org/threaded_animation_with_cairo/" class="">http://cairographics.org/threaded_animation_with_cairo/</a><br class="">http://stackoverflow.com/questions/22851584/very-simple-smooth-animation-with-gtk2-and-cairo<br class="">http://stackoverflow.com/questions/23225832/how-to-do-basic-animation-with-gtk3-c-and-cairo-only<br class=""><br class="">I started myself with a Ruby example, for which a C version may exists<br class="">also, but I can not find it currently.<br class="">https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gtk3/sample/misc/cairo-pong.rb<br class=""><br class="">And I can remember a cairo clock. (My own application is this one:<br class="">http://ssalewski.de/PetEd.html.en)<br class=""><br class="">-- <br class="">cairo mailing list<br class="">cairo@cairographics.org<br class="">http://lists.cairographics.org/mailman/listinfo/cairo</div></blockquote></div><br class=""></body></html>