A SERVICE OF

logo

3 – 32 Programming
You can vary the length of the graphics line by changing the value of
NDOTS.
Try changing the density in this program and see what happens. Save
this program; you will need it later.
Combining Text and Graphics
You can mix normal text printing and graphics on the same
line. Here is an example using the image coded in the last
section:
05 ‘SAMPLE 3
10 LPRINT “TEXT PRINTING ”;CHR$(27);CHR$(75);
CHR$(11);CHR$(0);CHR$(1);CHR$(2);CHR$(4);CHR$(9);
CHR$(18);CHR$(36);CHR$(72);CHR$(144);CHR$(32);
CHR$(64);CHR$(128); “ TEXT PRINTING AGAIN”
Here is the result:
The printer prints normally until it receives the start graphics code. It
then prints the number of graphics columns specified by n1 and n2 and
automatically returns to normal printing.
Note: Be careful to enter the amount of graphics data you told the printer to expect;
otherwise the results will be garbled