[plt-scheme] Yet another question. And this time: animations

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Mar 2 19:00:03 EST 2003

I think another problem is that `refresh' clears the canvas before it
calls `on-paint'. I'll will add a flag in the near future to disable
the clear.

Meanwhile, you can call `on-paint' directly if you're running in the
handler thread.

Matthew

At Sun, 2 Mar 2003 16:36:59 -0600, Robert Bruce Findler wrote:
> You can use offscreen bitmaps. Put the next frame of the animation into
> a bitmap and then just draw that into the canvas.
> 
> Robby
> 
> At Mon, 03 Mar 2003 00:08:51 +0200, Katsmall the Wise wrote:
> >   For list-related administrative tasks:
> >   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> > 
> > Hello again,
> > 
> > Now that I have normal drawings settled, what about some animations? Are 
> > they possible?
> > I tried making moving parts via boxes which are set every 0.1 secs and 
> > then refresh the canvas, yet (quite logically) the screen blinks like 
> > that...
> > Is there a built-in way to make animations?
> > 
> > Katsmall the Wise
> > kela_bit at netvision.net.il
> > 
> > 
> 



Posted on the users mailing list.