Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ depth_cue_c(3G) — HP-UX 9.10

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

depth_cue(3G)

depth_cue_range(3G)

depth_cue_color(3G)

NAME

depth_cue_color − set color for depth cuing

SYNOPSIS

C Syntax:

void depth_cue_color_index(fildes,index);
int fildes,index;

void depth_cue_color(fildes,red,green,blue);
int fildes;
float red,green,blue;

FORTRAN77 Syntax:

subroutine depth_cue_color_index(fildes,index)
integer∗4 fildes,index

subroutine depth_cue_color(fildes,red,green,blue)
integer∗4 fildes
real red,green,blue

Pascal Syntax:

procedure depth_cue_color_index(fildes,index:integer);

procedure depth_cue_color(fildes:integer;red,green,blue:real);

DESCRIPTION

Input Parameters

fildes Integer file descriptor returned by gopen when an I/O path to a graphics device is opened. 

index Integer index into the color table.  The depth cue color for subsequent primitives which use the color depth cue model will be the color at that location in the color table.  Use inquire_sizes procedure to find the number of color table entries available for a specific device. 

red, green, blue
Color components used for subsequent depth cue calculations. Values range from 0.0 to 1.0 where zero indicates minimum color (off) and 1.0 indicates full (maximum) color. Monochrome devices determine intensity by using the equation:
 

I = 0.30 ∗ red + 0.59 ∗ green + 0.11 ∗ blue

Discussion

The color specified is the color at the yon reference plane specified in the depth_cue_range procedure. 

DEFAULTS

Color Index defaults to 0. 

SEE ALSO

depth_cue(3G), depth_cue_range(3G), Starbase Graphics Techniques.

Hewlett-Packard Company  —  HP-UX Release 9.10: April 1995

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