User`s manual

ALLOCATE
Reserves the proper amount of printer memory for the image to be
stored
CIRCLE
-
Draws a circle (or a partial circle, called an arc>
LINE
Draws a line or a box
PAINT
Fills an enclosed area with a pattern
EXIT
Leaves the graphics mode and returns the printer to normal
operation.
The parameters for these commands are entered as ASCII strings.
For example, to send the value 100 to the printer in graphics mode, you
use LPRINT
“100”
instead of LPRINT
CHR$(lOO).
The difference is
that three codes (1, 0, and 0) are sent to the printer instead of just one
(ASCII 100). To see the difference, study the example programs that
follow.
Using the line primitive
100 LPRINT CHR$(27);";";CHR$(O);CHR$(4);
110 LPRINT
"EXIT";CHR$(13);
120 LPRINT CHR$(27);"
;";CHR$(l)
;CHR$(4);
130 LPRINT
"ALLOCATE(650,65O)';CHR$(l3);
140
LPRINT
"LINE
150
LPRINT
"LINE
160
LPRINT
"LINE
170
LPRINT
"LINE
180
LPRINT
"LINE
190
LPRINT
"LINE
lOO,lOO)-(100,600)';CHR$(l3);
100,600)-(600,6OO)";CHR$(l3);
100,400)-(300,4OO)";CHR$(l3);
300,400)-(300,600)';CFIR$(l3);
500,200)- (100,600)";CHR$(13);
lOO,lOO)-(85,145)";CHR$(l3);
200
LPRINT "LINE(500,200)-(445,235)";CHR$(l3);
210
LPRINT "LINE(600,600)-(555,585)";CHR$(l3);
220
LPRINT "EXIT";CHR$(13);
230
LPRINT CHR$(27);"I";CHR$(2);CHR$(4);
240
LPRINT CHR$(236);CHR$(O);CHR$(1OO);CHR$(2);
250
LPRINT "EXIT";CHR$(l3);
260
LPRINT
CHR$(12);
6-10
Software Control of Printer Features