Name: PGSNCR Purpose: set multiple color representations Category: GRAPHICS File: pgplot.src Author: J. P. Terlouw Use: see description below. Description: SUBROUTINE PGSCR (CI, CR, CG, CB, N) INTEGER CI, N REAL CR(N), CG(N), CB(N) Set color representations: i.e., define the colors to be associated with a range of color indices. Ignored for devices which do not support variable color or intensity. Color indices 0-15 have predefined color representations (see the PGPLOT manual), but these may be changed. Color indices 16-maximum have no predefined representations: if these indices are used, PGSNCR can be called to define the representation. On monochrome output devices (e.g. VT125 terminals with monochrome monitors), the monochrome intensity is computed from the specified Red, Green, Blue intensities as 0.30*R + 0.59*G + 0.11*B, as in US color television systems, NTSC encoding. Note that most devices do not have an infinite range of colors or monochrome intensities available; the nearest available color is used. Examples: for black, set CR=CG=CB=0.0; for white, set CR=CG=CB=1.0; for medium gray, set CR=CG=CB=0.5; for medium yellow, set CR=CG=0.5, CB=0.0. Argument: CI (input) : first colour index. If any colour index is is outside the range available on the device, the call is ignored. Color index 0 applies to the background color. CR (input) : arrays of red, green, and blue intensities, CG (input) in range 0.0 to 1.0. CB (input) N (input) : number of colour indices to be modified. This subroutine is an extension of PGSCR, which allows one color index to be modified. Updates: Sep 3, 1999: JPT document created.