DoShadeIndex(3D)

NAME
DoShadeIndex - Create a shade index primitive attribute object

SYNOPSIS
C:
DtObject DoShadeIndex(index)
DtInt index;

FORTRAN:
INTEGER*4 DOSI(INDEX)
INTEGER*4 INDEX

DESCRIPTION
DoShadeIndex creates a shade index primitive attribute object. The parameter index specifies which color shade range should be used to render subsequent primitive objects on a pseudocolor device with shademode is set to DcRange <DCRNG>. See DdSetShadeMode.

This function accesses the shade range table of a pseudocolor device. Each shade range specifies the minimum and maximum entries in the device's lookup table defining one series of shades of a particular color. The entries in the range increase in intensity from the first shade in the range to the last. Colors produced by the renderer are converted to an intensity between 0.0 and 1.0. This intensity and the current shade index are used to interpolate between the values in the corresponding shade range where an intensity of 0.0 corresponds to the first entry in the shade range and an intensity of 1.0 to the last entry.

DEFAULTS
The default value for DoShadeIndex is 0.

SEE ALSO
DdInqShadeMode(3D), DdInqShadeRanges(3D), DdSetShadeMode(3D), DdSetShadeRanges(3D)