Graphics Width Limitations; Summary - Epson FX-80 User Manual

Hide thumbs Also See for FX-80:
Table of Contents

Advertisement

since the line is the last one of this program. It's just a good habit to
develop.
Graphics Width Limitations
By adjusting n, and n
21
users can print up to 480 columns with a
single (ESC) "K" sequence. The 7-bit limitation of some systems re-
quires a little more effort to get the job done. Everyone change lines 10
and 20 to:
110 LPRINT CHR$(27)"K"CHR$(224)CHR$(1);
210 FOR X=l TO 4810
If
you are an 8-bit user, RUNning this program should give you a line
that stretches clear across the page.
If
you are a 7-bit user, you will get
much less. However, you can achieve a full-page line with this pro-
gram:
110 LPRINT CHR$(27)"K"CHR$(127)CHR$(1);
210 FOR X=l TO 383: LPRINT CHR$(l);: NEXT X
310 LPRINT CHR$(27)"K"CHR$(97)CHR$(!O);
410 FOR X=l TO 97: LPRINT CHR$(l);: NEXT X
510 LPRINT
This program simply breaks the 48 columns into two smaller chunks.
You know the old saying: if your barn door isn't wide enough, raise
smaller cows.
Meditate on this stuff for a while. Experiment with different pin
patterns, then move on to the next chapter for some graphics pro-
gramming techniques.
Summary
(ESC) "K"CHR$(n,)CHR$(n
2 );
Enters graphics mode and specifies
width setting. Width = n,
+
256*n
2
where: O( =n,( =255 and O( =n
2 (
=7.
Note: Graphics dots are printed 60 per inch horizontally and 72 per
inch vertically.
135

Advertisement

Table of Contents
loading

Table of Contents