[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
SET COLOR REPRESENTATION
(PHOP,WSOP,*,*)
Purpose
Use
Set Color Representation
to set the specified color values
at the specified color table entry of the workstation's
color table.
All currently supported color models require three
floating-point components.
Each component must be in the range
[0.0, 1.0].
If the color model is Hue-Saturation-Value (HSV),
then the graPHIGS API uses the first color component
(hue) as a fraction of
the total range available
(that is, zero to one is used to
represent zero degrees to 360 degrees).
If the second color component is zero, then the graPHIGS API
ignores the first color component.
Language Bindings
C
pset_colr_rep
(ws_id, colr_ind, colr_rep) |
Pint ws_idWorkstation identifier.
Pint colr_indColor index (>=0).
Pcolr_rep *colr_repColor representation.
FORTRAN
PSCR
(wkid, ci, nccs,
cspec) |
integer wkidWorkstation identifier.
integer ciColor index (>=0).
integer nccsNumber of components of color specification.
real cspec(*)Color specification.
Errors
- 3
- Function Requires State (PHOP,WSOP,*,*)
- 54
- Specified Workstation Is Not Open
- 59
- Specified Workstation Does Not Have Output Capability
- 113
- Color Index Value < ZERO
- 103
- Exceeded Maximum Number Of Workstation Bundle Table Entries
- 118
- Color Component Is Out Of Range
Related Subroutines
Inquire Color Facilities
Inquire Color Representation
Inquire Color Model
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]