pe_init_pseudo_colr(3g) — Subroutines
Name
pe_init_pseudo_colr − Performs the same function as the pe_setup_pseudo_colr and pe_set_pseudo_colr functions.
Operating States: PHOP, WSOP, ∗, ∗
Digital PHIGS extension function
Syntax
void pe_init_pseudo_colr (
Pint wsid, /∗ (I) Workstation identifier ∗/
Pint index, /∗ (I) Color mapping index ∗/
Pint num_colors, /∗ (I) Size of the color map ∗/
Pcolr_rep ∗colours /∗ (I) Input color value in red, green, and
blue (RGB) ∗/
)
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
pe_init_pseudo_colr takes the place of the pe_setup_pseudo_colr and pe_set_pseudo_colr functions. Using this function allows you to use the color map created by the pe_setup_pseudo_colr function, with no modifications.
See Also
pe_set_pseudo_colr
pe_setup_pseudo_colr