Chapter 6
Graphics
Your
Some computers allow you to draw figures on the screen using graphics characters and then dump them to the printer using a screen dump command. Check your computer’s documentation to see if it contains this feature.
Graphics Characters
The
To access the graphics characters in BASIC, you use CHR$(n) where n is an ASCII code between 128 and 159. The following program prints out all of the special characters in Expanded mode. Type the program in exactly as shown and RUN it.
10 LPRINT CHR$(27)"W1"20 FOR X=128 TO 13830 LPRINT CHR$(X)" ";40 NEXT X: LPRINT50 FOR X=139 TO 14960 LPRINT CHR$(X)" ";70 NEXT X: LPRINT39