Star Micronics Radix User Manual page 158

Table of Contents

Advertisement

144
Radix User's Manual
30 WID = 1000
This will make the sine wave pattern long enough to go off the
page-
As you can see, Radix
printed
graphics
up to the end of the
line, then ignored
the rest of the graphics
data and returned
to
normal
text on the next line.
Printing
a Design
or Logo
Since you control
the firing of every pin, you can print nearly
anything
with Radix
that you can draw (and probably
better,
if
you're like most computer
users!).
This can be used for creating
"computer
art" or drawing
maps. Or, as we'll show you here, you
can use dot graphics
to print your logo at the top of each letter you
print.
Designing
an image
to print with dot graphics
is much like
designing
download
characters.
The best way to start is to lay out
your image on graph paper. Since you can print eight rows (seven
with a 7-bit interface)
of dots with each
pass of the print head,
draw
a heavy
horizontal
line every
eight
rows
on your graph
paper. And it may be helpful
to write the dot values (128, 64, 32,
etc.) down the left side of each row. Then after you've filled in the
"dots" that you want to print, it's time to get out the old calculator
again! Just as you did with download
characters,
add up the val-
ues of each column
of dots; this makes up one byte.
In the program
below,
we've taken the logo graphics
informa-
tion and put it into BASIC
DATA statements.
The program
itself is
short and simple.
The loop starting
at line 100 reads the data state-
ments
into a string
array variable
called
LOGO$.
In line 170 we
change
the line spacing
to 8/72 inch so that the lines of graphics
data will connect
vertically.
The actual printing
is done in the loop
between
lines
180 and 210; line 190 sends
the graphics
control
code to Radix and line 200 sends one line of graphics
data.
The
printout
from
the program
is shown
right
below
the
program.

Advertisement

Table of Contents
loading

Table of Contents