Re: Animation



My app shows a window with a black circle in the center created  with
gdk_draw_arc.
How can i animate another circle that orbits the black circle in an
elliptical orbit??
is that possible??

Yes, it is possible.  Timing will be an issue.  You will need to create
a timer
that will trigger every time you want to update the image.  You may also
need
to double buffer to prevent flicker.  Draw the scene in a offscreen
bitmap then
copy it to the visible screen.  You will most likely need to redraw the
entire image
every time unless the objects never cross paths.  Then you can just
redraw the
background behine where you drew your small object then draw it in its
new
position.  The timing will be the real issue to make it look right.

Frank






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]