[cairo] Confusion on Windows (re-send)

Gerdus van Zyl gerdusvanzyl at gmail.com
Thu Aug 6 03:50:15 PDT 2009


Well you need a timer or a loop, then every few miliseconds you simply
move the image a little closer to where it should be at the end. You
draw as you usually do in cairo.

See this excellent article on the matter:
http://www.robertpenner.com/easing/penner_chapter7_tweening.pdf and
http://www.robertpenner.com/easing/

~Gerdus

On Thu, Aug 6, 2009 at 3:15 AM, Mohit Sindhwani<ml3p at onghu.com> wrote:
> I think I've painted myself into a corner and would just appreciate a
> simple way out :)
>
> I'm using Cairo on Windows and was trying to figure out how to achieve a
> sliding animation.  My understanding is that I should:
> * create an off-screen image surface
> * draw all the stuff onto it
> ...and then move slide the image in 10% a time onto the screen so that
> it looks like a smooth slide.
>
> Not sure how the last step works.. I hope that the question makes sense..
>
> Appreciate some help there.
>
> (I'm sorry I am sending this again because I don't think it showed up in
> my email)
>
> Thanks,
> Mohit.
> 2009/08/06 | 1:56.
>
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list