Line 20 begins a loop to produce multiple print ines. Lines 30 and 40 were covered above, but an PRINT#4, or 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. Line 90 is the reset code to return the printer to its defaults.
Density Varieties Although all the examples so far in this chapter have been in the single-density graphics mode, the MPS 1000 offers three other density modes. All the eight-pin densities and their commands are described in Table 7-1. Table 7-1. Graphics modes Column Reservation Numbers Now that we've inuoduced you to the rest of the eight-pin graphics densities and the reassigning code, we'll explain in more detail the part of the graphics command that reserves the number of columns for graphics (the numbers nl and n2 in our examples).
88 Densitv ESCaoe Seaue nce Description Single ESC''K''CHR$(n 1)C HR$(n2) 60 dots/inch; 480 dotsts• l ine Double at half speed ESC''L''CHR$(n ')C HR$(n2) 120 dots/inch; 960 dots/8 • line Double at normal speed ESC''Y''CHR$(n')C HR$(n2) 120 dot positions/inch. Fa Mode 1; does not print con dots in a row. ster than secutive Quadruple ESC''Z''CHR$(n')C HR$(n2) 240 dot positions/inch; 19 positions/a • line. Does no consecutive dots in a row. 20 dot t print