The program experiments with graphical commands from Chapter 12. Two window settings are used, colors are changed, boxed lines, areas and ellipses are used.
SET ZONEWIDTH 10
PRINT "window coordinates"
PRINT "x1","x2","y1","y2"
!first window setting
SET WINDOW -10,10,-10,10
ASK WINDOW x1,x2,y1,y2
SET COLOR "magenta"
PRINT x1,x2,y1,y2
BOX LINES x1,x2,y1,y2
BOX CIRCLE -1,0,-1,0
FLOOD -.4,-.4
SET COLOR "red"
BOX LINES 0,3,0,3
SET COLOR "green"
BOX AREA 0,2,0,2
!second window setting
SET WINDOW 0,1,0,1
SET COLOR "blue"
BOX CIRCLE 0,.1,0,.1
BOX AREA .1,.2,.7,.8
ASK WINDOW x1,x2,y1,y2
PRINT x1,x2,y1,y2
PLOT .1,.1;.2,.2
SET COLOR "brown"
PLOT .2,.2;.1,.5
SET COLOR "cyan"
PLOT .1,.5;.9,.9
PLOT .9,.9;.4,.4
PLOT .4,.4;.4,.3
BOX CIRCLE .35,.45,.25,.35
!set lettersize 30 ... doesn't work. We need the manual here.
SET COLOR "0123456789" ! looks grey but is unpredictable
PLOT TEXT, AT .6,.2:"AMES 5 RULES!"
SET COLOR "1234567" ! looks magenta but is also unpredictable
PLOT .6,.19;.74,.19
END
The output...please run the program to see.