more adventures of a smalltalk newbie

Dan Ingalls Dan.Ingalls at disney.com
Tue May 9 04:32:56 UTC 2000


>On Tue, 9 May 2000 01:01:56 +0100 "david gentle" <davidgentle26 at freeuk.com> wrote:
>>I think I begining to get the hang of the syntax.
>>Now. I have a couple of questions:
>>a: how do you draw a line?

and Bob Arning <arning at charm.net> replied...
>There are several methods that will help here. See FormCanvas>>line:to:width:color: e.g.

For a line object, use PolygonMorph in its PolyLine mode, thusly...
	World addMorph: (PolygonMorph
		vertices: {pointA. pointB}
		color: Color red borderWidth: 2 borderColor: Color red)

	- Dan






More information about the Squeak-dev mailing list