Re: Cairo animation

Maarten Mostert <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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 <[email protected]> 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
> [email protected]
> http://lists.cairographics.org/mailman/listinfo/cairo

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.