
Graphics
12a
64
32
16
8
4
2
1
I
1-1
I
I
I
1
1 1
I
I
1
I
,
1101111111111111111
44wwuMwa422l(I~t:8
8
8
0
I8
8184228
2
228200000000000000Ml44
The
numberg
for the second line were calculated in the same way.
Once the
numbeq
for the pin
patty
are
calculated, they are put
in the
pqgram.
in. DATA statements, separated by commas.
The following program is similar to the example on page
4-16.
This
program selects
7/7%inch
line spacing because only seven pins are
used. Because the data is not repetitive, each column of graphics
data is read from the DATA statements and sent to the printer. The
design is
41
dot positions wide, therefore, both lines
130
and
140
use the number
41.
100
WIDTH
"LPT1:".255
110
LPRINT
CIiR$(27)
;"A";CIIR$(7);
120
FOR
ROW-1
TO 2
130
LPRINT
CHR$(27):"Y":CHR$(41):CHR$(O):
140
FOR
COLDMN-1
TO
41
150
READ
N
160
LPRINT
CHR$(N):
170
NEXT COLUMN
180
LPRINT
190
NEXT ROW
200END
210
DATA
64.32.80.8.68.2.64.0.64.0
220
DATA
64.0.64.0.32.0.16.0.8.0
230
DATA
8.0.8.0,8.0.8.0.8.0.8,0,8,0
240
DATA
184.64.32.16.8.4.2
250
DATA
8.16.40.64.136.0.8.0.8.0
260
DATA
8,0.8,0.16.0.32.0,64.0.64.0
270
DATA
64.0.64.0.64.0.64.0.64.0.64.0
280
DATA
116.8.16.32.64.128.0
Software
and
Graphics
4-19