[cairo] Cairo animation

Maarten Mostert maarten.mostert at wanadoo.fr
Sun May 24 12:24:41 PDT 2015


I use a timed loop which is active when my app has focus and the mouse is within the view.

Pretty simple and it gives good results

You can see it in action here: http://stakepoint.com/ <http://stakepoint.com/>

@+Maarten,



> Le 24 mai 2015 à 16:52, Stefan Salewski <mail at ssalewski.de> a écrit :
> 
> On Sun, 2015-05-24 at 16:17 +0200, Davide Calaminici wrote:
>> i would like to know how to do a simple cairo animation.
> 
> Interactive or non interactive? Inside a GTK window? Have you already
> drawn some desired graphics at all?
> 
> I do admit that there are not many fine examples for cairo, but there
> are some. With "cairo graphics animation" you should find some with an
> arbitrary search engine. I can remember these pages:
> 
> http://cairographics.org/threaded_animation_with_cairo/
> http://stackoverflow.com/questions/22851584/very-simple-smooth-animation-with-gtk2-and-cairo
> http://stackoverflow.com/questions/23225832/how-to-do-basic-animation-with-gtk3-c-and-cairo-only
> 
> I started myself with a Ruby example, for which a C version may exists
> also, but I can not find it currently.
> https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gtk3/sample/misc/cairo-pong.rb
> 
> And I can remember a cairo clock. (My own application is this one:
> http://ssalewski.de/PetEd.html.en)
> 
> -- 
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150524/e650433e/attachment.html>


More information about the cairo mailing list