Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

SET INTERIOR COLOUR(3P+)  —  Kubota Pacfic Computer Inc. (29 February 1991)

NAME

SET INTERIOR COLOUR − create structure element to set the interior colour attribute

SYNOPSIS

C Syntax

void
pset_int_colr ( colour )
Pgcolr∗colour;interior colour

Required PHIGS Operating States

(PHOP, ∗, STOP, ∗)

DESCRIPTION

Purpose

SET INTERIOR COLOUR creates a structure element to set the interior colour attribute. 

When the current interior colour Aspect Source Flag (ASF) is set to INDIVIDUAL, the current value of this attribute defines the interior colour to be applied to the following output primitives:

• FILL AREA

• FILL AREA 3

• FILL AREA SET

• FILL AREA SET 3

• FILL AREA SET 3 WITH DATA

• NON-UNIFORM B-SPLINE SURFACE

• SET OF FILL AREA SET 3 WITH DATA

• QUADRILATERAL MESH 3 WITH DATA

• TRIANGLE STRIP 3 WITH DATA

C Input Parameters

colourInterior colour. Pgcolr is defined as:

typedef struct {
Pint type;/∗ indirect, RGB, CIE, HSV, HLS ∗/
union {
   Pintind;/∗ colour table index ∗/
   struct {
Pfloatx; /∗ red, hue, etc. ∗/
Pfloaty; /∗ green, saturation, lightness, etc. ∗/
Pfloatz; /∗ blue, value, saturation, etc. ∗/
   } general;
} val;
} Pgcolr;

Execution

Depending on the edit mode, a SET INTERIOR COLOUR element is inserted into the open structure after the element pointer or replaces the element pointed at by the element pointer. The element pointer is then updated to point to this SET INTERIOR COLOUR element. 

When the current interior colour ASF is set to INDIVIDUAL, filled-area output primitives that follow in the structure network are filled using the current interior colour. 

When the current interior colour ASF is set to BUNDLED, the interior colour is taken from the workstation extended representation indicated by the current interior index.  In this case, the interior colour set with SET INTERIOR COLOUR has no effect. 

The standard PHIGS function SET INTERIOR COLOUR INDEX is equivalent to calling to SET INTERIOR COLOUR with type INDIRECT. 

ERRORS

005Ignoring function, function requires state (PHOP, ∗, STOP, ∗)

SEE ALSO

COLOUR (7P)
SET INTERIOR REPRESENTATION PLUS (3P+)
SET INTERIOR COLOUR INDEX (3P)

September 02, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026