Printing Taller Patterns - Epson LX-810 User Manual

Hide thumbs Also See for LX-810:
Table of Contents

Advertisement

Graphics
Printing taller patterns
The next example shows how several lines of graphics can be
formed into a figure taller than eight dots. It uses programming
techniques for producing textured or repetitive patterns.
In the following program, the lines inside each pair of FOR and
NEXT statements have been indented so that you can see how the
program works; the spaces are not needed for the program to run.
100 WIDTH "LPTl:",255
110 LPRINT CHR$(2T);"A";CHR$(8);
120 FOR R=1 TO 6
130
LPRINT CHR$(27);"K";CHR$(100);CHR$(0);
ikO
FOR X=1 TO 50
150
LPRINT CHR${1T0);CHR$(85) ;
160
NEXT X : LPRINT
170 NEXT R
180 LPRINT CHR$(27)
If you run the program you will see how it combines six print
lines into a pattern.
There are five basic steps that the program goes through to
produce this kind of pattern:
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 inch. This is the
height of the dot patterns used in the program (line 110).
3. The program goes through the graphics command the required
number of times (line 120 and 170).
Software and Graphics
4-15

Advertisement

Table of Contents
loading

Table of Contents