Graphics; Printing Graphics - OKIDATA 120 Handbook

For commodore computers
Table of Contents

Advertisement

34
the second code. First divide 180 by 256, like this:
256)18g
-0
180
quotient (d1)
subtract
remainder
(d2)
Now
take dl and d2 and add them to your print statement.
You'll get this command:
PRINT#1,
CHR$ (27) ; CHR$ (16) ; CHR$ (0) ; CHR$ (180) ; "TEXT ... "
Function:
Start graphics
Normal density
High density
Repeat graphics
Graphics
- - - - - - -. . . . . . . .
"1
Code:
CHR$(8)
CHR$(27);"P"
CHR$(27);"Q"
CHR$(26);"n
"
NO-E:
n
=
a
number
between 0 and 255.
If n
=
0 the pattern
is
repeated 256 times.
This section reviews how the OKIDATA 120 prints graphic
images like charts and pictures ..
Printing graphics
The OKIDATA 120's graphics capabilities let your print
charts, graphs and pictures. The easiest way to create
graphics is by using a graphics software package. With
these packages, you usually create an image on your
screen and then instruct your computer to send the image
to your printer. Like a newspaper photograph, these images
are composed of thousands of tiny dots
.
Your software
package tells the OKIDATA 120 where to print each dot.
More advanced programmers might want to try writing pro-
grams that produce graphic images. This takes time, pa-
tience, and an understanding of how your printer functions
.

Advertisement

Table of Contents
loading

Table of Contents