GRAFSTUF.INC author:Don Taylor, Poulsbo, WA source:TUG May-June 1985 pages 14-24 DESCRIPTION Provides access to Apple graphics screen. Softcard assumed. Don Taylor provides routines for Apple users to access graphics. Only one requirement-- PROGRAMS MUST BE COMPILED WITH THE C (Com) OPTION TO START AT 5000(Hex). Reason is the program uses the Apple Graphics page 2 which is at Z80 address $3000-4FFF. Routines use Applesoft routines for plotting etc. Procedure name Description Graphwindow(xl,yt,xr,yb: integer); sets window limits Fullwindow; sets limits to maximum GraphColorMode; selects HIRES display mode Textmode; selects text display mode Initgraphics initaizes Apple stuff Setcolor(color:integer); selects hires color Graphbackground(color:integer); paints screen desired color Getpenposition(var x,y:integer);gets x,y location of pen Positionpen(x,y:integer); positions pen without writing Plot(x,y,color:integer); plots point in selected color Draw(x1,y1,x2,y2,color:integer);draws colored line Saveimage(picname:str80); saves picture to disk Loadimage(picname:str80); loads image from disk Function name Inwindow(x,y:integer):boolean; returns true if point is in window GRAFSTUF.INC is for Apple ][, ][+, and ][e. GRAF.INC is for Apple][ or ][+ with 80 column card. (Text mode does nothing). I have a switch to go between the Apple screens. If you have a softswitch then put the switching code in the program.