When your application open a workstation, the graPHIGS API automatically creates workstation tables to describe the workstation. Each workstation table has default settings. Use the subroutines in this section to modify some of the table entries according to your application's specifications.
Most workstation table indexes begin with 1. The following exceptions begin with 0:
Some table entries may not be modified.
The subroutines in this section do not create structure elements or modify structure content. The changed table values only take effect after you update the workstation. The application may inquire the default table settings by issuing the appropriate inquiry programming calls. For a listing of the default tables for each supported workstation type, see The graPHIGS Programming Interface: Technical Reference.
Purpose
Use Set Color Model to set the current color model for the specified workstation to the given color model. Possible color models include: 1=RGB, 2=CIELUV, and 3=HSV. The CMY color model is supported via GPxxxx subroutines.
Use this subroutine to specify a color model. The graPHIGS API uses this color model to interpret the color parameters for color definition and inquiries pertaining to the specified workstation.
Language Bindings
pset_colr_model (ws_id, colr_model) |
PSCMD (wkid, cmodel) |
Errors
Related Subroutines