Epson LX-90 User Manual - Apple IIc 8699 PIC for LX-90 - Page 48
Print Chr$27;k;chr$l00; Chr$0, For X=1 To 50: Print Chr$42; Chr$ 85
View all Epson LX-90 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 48 highlights
To see how more than one line combines to form a figure, enter and run the following program, which uses the lines you have already typed and adds several more. 5 PRINT CHR$(4);"PR#l" 10 PRINT CHR$(9);"Z" 20 PRINT CHR$(27);"A";CHR$(7) 30 FOR R=l TO 3 40 PRINT CHR$(27);"K";CHR$(l00); CHR$(0); 50 FOR X=1 TO 50: PRINT CHR$(85); CHR$(42); 60 NEXT X: PRINT 70 PRINT CHR$(27);"K";CHR$(l00); CHR$(0) 80 FOR X=1 TO 50: PRINT CHR$(42); CHR$ (85); 90 NEXT X: PRINT: NEXT R 100 PRINT CHR$(27);"@" 300 PRINT CHR$(4);"PR#0" Now run the program to see the six print lines combine into a pattern: Because the short and simple program that produced the pattern demonstrates many elements of graphics programming, each line is explained below. Line 20 changes the line spacing to 7/72 of an inch, which is the height of the dot patterns used in the program. Therefore, there is no space between the print lines. Line 30 begins a loop to produce multiple print lines. Lines 40 and 50 were explained previously. Lines 70 and 80 are similar to lines 40 and 50 except that line 80 uses a reversal of the patterns in line 50. As 46