Previous Next Up Title Contents Index Functions Index Top Library

SET COLOUR REPRESENTATION

PSET_COLR_REP


CALL SEQUENCE

void pset_colr_rep(
)

TYPES

typedef union {
	Prgb	rgb;	/* red, green, blue colour spec.	*/
	Pcieluv	cieluv;	/* CIE L*U*V colour spec.	*/
	Phls	hls;	/* hue, lightness, saturation colour spec.	*/
	Phsv	hsv;	/* hue, saturation, value colour spec.	*/
} Pcolr_rep;

PHIGS STATE

(PHOP, WSOP, *, *).

EFFECT

The colour components rep are placed in the colour bundle table at index in the workstation state list.

The colour is specified by its components in the current colour model, as defined in the current colour model entry in the workstation state list.

When the primitives are displayed, during traversal, the current colour index in the PHIGS traversal state list refers to the corresponding entry in the ws_id workstation colour table.

The background colour of the workstation is defined by colour index 0.

ERRORS

3 Ignoring function, function requires state (PHOP, WSOP,*,*)

54 Ignoring function, the specified workstation is not open

59 Ignoring function, the specified workstation does not have output capability (i.e. the workstation category is neither OUTPUT, OUTIN, nor MO)

103 Ignoring function, setting this bundle table entry would exceed the maximum number of entries allowed in the workstation

110 Ignoring function, the specified colour model is not available on the workstation

113 Ignoring function, the colour index value is less than zero

118 Ignoring function, one of the components of the colour specification is out of range. The valid range is dependent upon the current colour model

SEE ALSO

set polyline colour index, set polymarker colour index, set text colour index, set interior colour index, set edge colour index, set colour model, inquire colour representation, inquire predefined colour representation, inquire colour facilities, inquire workstation state table length


Previous Next Up Title Contents Index Functions Index Top Library