Epson FX-185 User Manual - Page 195
Ones become dots
View all Epson FX-185 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 195 highlights
The final step to plotting a circle in an array is to close the loops and display the contents of the array. Add these three lines to your program: 50 LPRENT A(R,C);: NEXT C: LPRINT 60 PRINT "ROW";R: NEXT R 170 LPRINT CHR$(27)"@": END and RUN it. Figure 13-6. Displaying an array The printout shows, in terms of ones and zeros, the results of your planning and your program's plotting. Ones become dots Next you need to translate the contents of the array to dots on the paper. First, modify line 50 so that it no longer prints out the contents of the array: 50 NEXT C Then fill the usual graphics prescription for 7-dot line spacing: 70 LPRINT CHR$(27)"1"CHR$(7); The CHR$(7) sounds the beeper to tell you when the array is full. 178
The final step to plotting a circle in an array is to close the loops
and display the contents of the array. Add these three lines to your
program:
50
LPRENT A(R,C);: NEXT C: LPRINT
60
PRINT "ROW";R: NEXT R
170 LPRINT CHR$(27)"@": END
and RUN it.
Figure 13-6. Displaying an array
The printout shows, in terms of ones and zeros, the results of your
planning and your program’s plotting.
Ones become dots
Next you need to translate the contents of the array to dots on the
paper. First, modify line 50 so that it no longer prints out the contents
of the array:
50
NEXT C
Then fill the usual graphics prescription for 7-dot line spacing:
70 LPRINT CHR$(27)"1"CHR$(7);
The CHR$(7) sounds the beeper to tell you when the array is full.
178