void pcell_array(
const Prect *rectangle /* cell parallelogram */ const Ppat_rep *colr_array /* colour array */
)
typedef struct {
Ppoint p; /* point p */
Ppoint q; /* point q */
} Prect;
typedef struct {
Pint_size dims; /* pattern dimensions */
Pint *colr_array; /* colour index array */
} Ppat_rep;
typedef struct {
Pint size_x; /* dimension (number of divisions) along x */
Pint size_y; /* dimension (number of divisions) along y */
} Pint_size;
This function restricts the 3D cell array function to 2D (x, y).
The CELL ARRAY element is inserted in the open structure after element pointer or replaces the element indicated by element pointer, depending on the edit mode value. Element pointer is updated and points to the CELL ARRAY structure element. The values specified in the function are associated with the element.
When a function of this type is interpreted, a cell array defined by the rectangle cells, of which the colour is specified by the index of its associated cell in the array, will be displayed on the screen. GPHIGS simulates this function making best use of the capabilities of the peripheral device used.

If used in one of the two GPHIGS specific modes NRS or NDDS, the effect of this function is different from the effect described in the standard.
In NRS mode, (see OPEN PIPE), the element is not stored in a structure. It is sent to the workstation on which the pipe is opened.
In NDDS mode, (see BEGIN NON DUPLICATE DATA STORE), the element is stored in the structure but its content is not copied into the CSS. GPHIGS stores only the pointer to the user's data.
See GPHIGS user guide for more details on NRS and NDDS modes.
open structure, open pipe (ext), begin non duplicate data storage (ext),cell array 3, inquire current element content, inquire current element type and size