A SERVICE OF

logo

Programming 3 – 35
Reminders
1. Make sure you have entered column data for the same number of
columns as specified by n1 and n2 in your LPRINT statement. If you
enter too much or too little data, the results will be garbled.
2. You can print no more than the maximum number of columns for
your graphics density mode. If more data is contained in the LPRINT
statement, the excess will simply be ignored.
3. Observe the limitations on dot placement in these graphics density
modes:
Double density, normal speed (ESC Y) and quadruple density (ESC Z)
skip at least one dot position between dots on the same horizontal row.
The printer will not print a dot placed closer than this.
Hints
The ways you can use features of BASIC to program graphics are limited
only by your imagination and your programming experience. In this
section we summarize the tricks used in the examples and suggest a few
new ones.
MOD and FIX can be very helpful in calculating the number of columns
of graphics data.
You can use the type of FOR-NEXT loop shown in sample 2 in some cases
where the dot pattern can be described by a mathematical function; a
straight line or a sine wave, for example.