Three beginner's questions

Ward Cunningham ward at c2.com
Fri Jan 30 03:40:16 UTC 1998


> > 1) What is the easiest way to draw a graphical object (e.g., a line)?

Phillippe -- Andreas offers some nicely general solutions to your
question. I'd like to add that Smalltalk has always supported turtle
graphics which is probably the EASIEST way to draw a line:

	Pen new
	  turn: 30;
	  go: 100

This may not be beautiful by modern standards. But it's handy when you
want to add some debugging plot output to a complicated program. -- Ward

-- 
Ward Cunningham
v 503-245-5633   mailto:ward at c2.com  
f 503-246-5587   http://c2.com/





More information about the Squeak-dev mailing list