beautypg.com

Printronix P3000 Series User Manual

Page 72

background image

Graphics

4–10

The following program uses the Odd Dot Plot control code to produce the image.

10 LPRINT

Odd Dot Plot

20 FOR I=1 TO 8
30 READ R1
40 READ R2
50 LPRINT CHR$(5);
60 FOR N=1 TO 25
70 LPRINT CHR$(R1);CHR$(R2);
80 NEXT N
90 LPRINT
100 NEXT I
110 DATA 42, 64, 73, 65, 92, 64, 42, 64, 73, 65, 92, 64, 42, 64, 73, 65
120 LPRINT

The image is printed 25 times as shown in Figure 4–9.

An entire dot row is plotted in one printing pass. Consequently, the first row of all 25 images
is printed in one pass, followed by the second row, etc, until all rows have been printed.

Figure 4–9. Sample Odd Dot Plot