GRIDAREA
GRIDAREA is a mode in which the user specifies, in an initial call, the size grid he wishes to use and the number of intensity levels he will need. Subsequent calls send, as data items, the i, j locations of an area and a byte for intensity.
The initializing call is GRIDSET(N, M, IRNGE)
|<--- I ------>|
where N is the number of spaces --- +--+--+--+--+--+--+--+--+
across, M is the number down, ^ |--|--|--|--|--|--|--|--|
and IRNGE tells how many grey | |--|--|--|--|--|--|--|--|
levels to use. This is primarily J |--|--|--|--|--|--|--|--|
for grey-scale displays or | |--|--|--|--|--|--|--|--|
pseudogrey-scale displays. v |--|--|--|--|--|--|--|--|
--- |--|--|--|--|--|--|--|--|
|--|--|--|--|--|--|--|--|
+--+--+--+--+--+--+--+--+
On a Gould Electrostatic Printer-Plotter, for example, the system would expect to have dot patterns with which to fill areas in order to simulate the greys. For purposes of other displays, a SETSQUARES procedure should be available so that the user can specify various kinds of cross-hatching and character filling to apply to the grid areas.
To enter an item of data the procedure is
1 <= I <= N
GRIDAREA(I, J, LEVEL) 1 <= J <= M
1 <= LEVEL <= IRNGE
where I and J select an area on the grid, and LEVEL tells how to fill it. Obviously, for this kind of display mode some provision must be made to end the picture because the servicing routine will have to work on it from either the top or the bottom in a sweep mode. A procedure call of GRIDAREA(0, 0, 0) will terminate it. The GRIDAREA mode is very similar to the following, MATRIXAREA, with the primary difference being that the specification of areas is random and areas which are not specified will be left blank.