Question about flushing Display on Canvas

Lex Spoon lex at
Mon May 2 21:13:30 UTC 2005

It would be great if there were a way that was as easy to draw in
Morphic as Milan is seeking.  If you draw onto the Display directly,
Squeak is smart enough to flush things immediately as you draw.  It's
not fast, but it's easy to use and understand.  On the other hand, if
you play by Morphic's rules, then what can you do?

It would be great if there were some sort of CanvasMorph.  It could be
used like this:

	morph := CanvasMorph new.
	morph openInWorld.

	canvas := morph canvas.
	canvas fillColor: (Color yellow).

The response to #canvas, here, would be some kind of canvas that
automatically sends #changed to the morph whenever a message is sent to
it.  You could easily implement such a canvas as subclass of


More information about the Squeak-dev mailing list