Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!decuac!bacchus.pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: simple animation Message-ID: <1990Oct22.183145@wsl.dec.com> Date: 23 Oct 90 01:31:45 GMT References: <1990Oct22.214447.21088@sbcs.sunysb.edu> Sender: news@wrl.dec.com (News) Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 20 In article <1990Oct22.214447.21088@sbcs.sunysb.edu>, ruderman@sbcs.sunysb.edu (David Ruderman) writes: |> What is the best (smoothest, fastest) way to do some |> simple animation using X11.R4 on a Sun3? |> |> I would like to do nothing more than move 2D shapes (filled circles) |> around in a window. If you have more than a couple of moving objects, you probably want to do some sort of double buffering. One way is to draw on a hidden pixmap, then CopyArea it to the screen all at once. Another way is to draw everything to the screen, but play with the colormap so that only the "interesting" parts are visible. Finally, you could use the X11R4 double buffering extension. See the X11R4 ico demo program for sample code. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee