pinq_pred_colr_rep(3g) — Subroutines
Name
pinq_pred_colr_rep − Returns the color triplet of an index.
Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
Syntax
void pinq_pred_colr_rep (
Pint wstype, /∗ (I) Workstation type ∗/
Pint index, /∗ (I) Predefined color index ∗/
Pint ∗error_ind, /∗ (O) Error indicator ∗/
Pcolr_rep ∗rep /∗ (O) Predefined color representation ∗/
)
Data Structures
typedef union {
Prgb rgb; /∗ Red, green, and blue color specification ∗/
Pcieluv cieluv; /∗ CIELUV color specification ∗/
Phls hls; /∗ Hue, lightness, and saturation color
specification ∗/
Phsv hsv; /∗ Hue, saturation, and value color
specification ∗/
Pdata unsupp; /∗ color in an unsupported color model ∗/
int impl_dep; /∗ implementation-defined ∗/
} Pcolr_rep;
typedef struct {
Pfloat red; /∗ red intensity ∗/
Pfloat green; /∗ green intensity ∗/
Pfloat blue; /∗ blue intensity ∗/
} Prgb;
typedef struct {
Pfloat cieluv_x; /∗ x coefficient ∗/
Pfloat cieluv_y; /∗ y coefficient ∗/
Pfloat cieluv_y_lum; /∗ y luminance ∗/
} Pcieluv;
typedef struct {
Pfloat hue; /∗ hue ∗/
Pfloat lightness; /∗ lightness ∗/
Pfloat satur; /∗ saturation ∗/
} Phls;
typedef struct {
Pfloat hue; /∗ hue ∗/
Pfloat satur; /∗ saturation ∗/
Pfloat value; /∗ value ∗/
} Phsv;
typedef struct {
size_t size; /∗ size of data ∗/
void ∗data; /∗ pointer to the data ∗/
} Pdata;
Description
pinq_pred_colr_rep queries the workstation description table and returns the color triplet of the specified index. The color triplet values are the coordinates of the color in the default color model for the specified workstation type.
See Also
pinq_colr_model_facs
pinq_colr_rep
pinq_list_colr_inds
pset_colr_rep