Symmetrical Graphics Patterns - Epson FX Series User Manual

Fx series printer
Hide thumbs Also See for FX Series:
Table of Contents

Advertisement

Symmetrical Graphics Patterns

In this chapter we continue to explore the generation of graphics
patterns in memory. As in the last chapter, you will use ones and zeros
in an array to generate pin patterns, but this time you will save mem-
ory by using a one-dimensional array to print a two-dimensional
figure. You will construct one long program in which an array con-
taining less than 300 elements will produce a pattern made up of many
thousands of dots.Because of the length of the program we will only
occasionally ask you to run it.
Begin by defining variables:
NEW
10 DIM A(480): X=1: C=0
20 MAX=5: MIN=l: RE=4: N=0
For easy reference, Table
you will use for this program. The array A, which is DIMensioned in
line
will store the pattern. Program loops will use the variables in
10,
line 20 to control the size and shape of the figure. You can change these
values later to create your own variations on the pattern.
Here are the loops:
FOR J=l TO RE
30
40
N=N+l
50 GOSUB
60
IF N<MAX THEN
N=N-1
70
80
GOSUB 300
Chapter 14
lists, in alphabetical order, the variables
14-1
300
40
189

Hide quick links:

Advertisement

Chapters

Table of Contents
loading

This manual is also suitable for:

Fx-100Fx-80Fx-185 - impact printer

Table of Contents