[comp.sys.apple] TML BASIC graphics programming

rupp@cod.NOSC.MIL (William L. Rupp) (09/16/88)

---------------------------------------------------------
I am writing some simple graphics programs on the Apple IIGS using TML
BASIC.  A lot can be done in TML BASIC with a few simple statements,
such as:

	LIRBRARY "QuickDraw"
	GRAF INIT 320
	GRAF ON
	_Clearscreen(-1):' clear screen to white
	_MoveTo(50,50):' move cursor to x,y coordinates 50,50 
	_LineTo(100,50):' draw a line from 50,50 to 100,50

	....and so on.

However, to really get down to the serious stuff, one must create a
GrafPort, which is a structure array of 169 bytes defining all sort of
things relating to the drawing environmment.  This turns out to be a
non-trivial exercise.   I am very eager to correspond with other TML
BASIC programmers who have tackled that topic, or perhaps with programmers
who have explored QuickDrawII/GrafPort using other languages (e.g., Pascal).

Bill
rupp@nosc.mil

----------------------------------------------------------------------------