Graphics Pin Patterns And; New Graphics Modes - Epson FX-80 User Manual

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

Advertisement

Chapter 13
Graphics Pin Patterns and
New Graphics Modes
So far, our graphics applications have been limited to working with a
single pin per column. As you'll see in later chapters, adding the pin
numbers to get pin combinations makes for some interesting effects.
Here's a program that fires the bottom four graphics pins in each
column. Since these pins are labelled I, 2, 4, and 8, and since the sum
of these four label numbers is 15, we'll send a CHR$(15) to the printer.
Type:
NEW
2YJ A$=CHR$(27)+"K"+CHR$(12!il)+CHR$(!il)
25 ' TRS Model I users see Appendix I
3!il B$=CHR$(15)
4!il LPRINT A$;: FOR X=l TO 12!il: LPRINT B$;: NEXT X
8!il LPRINT CHR$(27)"@"
Sure enough, CHR$(15) fires the bottom four pins.
This is basically the same program as the one we used to start the
last chapter, but we've added a few new wrinkles. We've stored the
string used to enter Graphics Mode in the variable A$ and the string
for data in B$. This makes it easy to enter a Graphics Mode several
times in a program.
141

Advertisement

Table of Contents
loading

Table of Contents