Epson FX-80 User Manual - FX-80/100 Vol. 1 - Page 195
Ones become dots
View all Epson FX-80 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 LPRINT A(R,C);: NEXT C: LPRINT 60 PRINT "ROW";R: NEXT R 170 LPRINT CHR$(27)"@": END and RUN it. 0 0 0 0 0 0 0 1 1 1 1 1 1 10000000 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 1 00 0 0 0 0 0 0 0 l 0 0 0 0 00 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 00 0 0 1 0 0 0 0 0 1 0 0 0 00 0 0 0 00 0 00 0 0 1 0 0 0 1 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 00 0 000 0 1 0 1 0 0 0 0 0 00 0 0 0 00 0 0 0 0 0 0 0 1 1 0 0 0 00 0 0 0 00 0 0 00 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 00 0 0 0 00 0 0 0 0 l 1 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 1 100000000000000000001 100000000000000000001 1000000000 0 0 0 00 0 0 0 0 0 1 01 00000000 0 0 0 0 0 0 0 0 0 l 0 0 1 0 0 01 0 0 0 0 0 0 0 0 0 0 0 0 0 l 0 0 0 1 0 0 0 0 00 0 00 0 0 0 0 0 0 l 0 0 00010000000000000100 0 0000100000000000 1 0000 000001100000001100000 0000000111111100 00000 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