[ 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)

Input Parameters

Pint ws_id
Workstation identifier.

Pint colr_ind
Color index (>=0).

Pcolr_rep *colr_rep
Color representation.

FORTRAN

PSCR (wkid, ci, nccs, cspec)

Input Parameters

integer wkid
Workstation identifier.

integer ci
Color index (>=0).

integer nccs
Number 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 ]