1.The computer is prevented from adding any extra characters by the WIDTH statement (line 100).
2.The line spacing is changed to 8/72 of an
3.The program goes through the graphics commands the required number of times (lines 120 and 170).
4.A new graphics command is used for each line printed (lines 130- 160). This part of the program is similar to the last example, but two columns are printed each time through the loop making a total of 100.
5.The last important thing to do is to reset the printer to its default settings, including the normal line spacing (line 180).
Notice that the graphics command (ESC K) can be in effect for only one print line. To print more than one line of graphics, the graphics command must be issued before each line.
Density VarietiesAlthough all the examples so far in this chapter have been in the singledensity graphics mode, there are six other
The four most common
The following example shows how to use the ESC * command to reserve 40 columns for
LPRINT CHR$(27);"*";CHR$(0);CHR$(40);CHR$(0);
6.8 | Introduction to Dot Graphics |