Line 20 begins a loop to produce multiple print lines. Lines 30 and 40 were covered above, but an LPRINT is added to line 50 to produce a line feed after line 40. Lines 60 and 70 are like lines 30 and 40 except that line 70 uses a reversal of the patterns in line 40. As the loop is executed, the program prints lines 40 and 70 alternately so that the patterns of the print lines will fit together well.
Notice that the graphics command can be in effect for only one print line. The command is in lines 30 and 60 so that it is issued each time a new print line is begun. You cannot print more than one line of graphics without having the graphics command issued more than once.
Line 90 is the reset code to return the printer to its defaults.
Density VarietiesAlthough all the examples so far in this chapter have been in the
Table
Mode | Density | Alternate |
| Description |
code |
| |||
|
|
|
| |
0 | Single | ESC “K” | 60 | dots/inch: |
|
|
| 480 | dots/8” line |
1 | /go;bSepeed | ESC “L” | 120 | dots/inch |
|
|
| 960 dots/8 line | |
2 | ESC “Y” | 120 | dot positions/inch | |
| Double |
| Faster than Mode 1; does not print | |
|
|
| consecutive dots in a row. | |
3 | Quadruple | ESC “Z” | 240 dot positions/inch; 1920 dot | |
|
|
| positionsW line. Does not print | |
|
|
| consecutive dots in a row. | |
4 | Epson | none | 80 | dots/inch; |
|
| 640 dots/W line | ||
|
|
| Matches the screen density of the | |
|
|
| ||
|
|
| screen dumps. | |
5 | none | I72 | dots/inch: | |
| (plotter) |
| 1576 dotsB” line | |
|
|
| Produces the same density hori- | |
|
|
| zontallv as verticallv. which makes | |
|
|
| circles look round. | |
6 | 90 dots/inch | none | 90 | dots/inch; |
|
|
| 720 dots/W line |
80