COPPER

Purpose:

Generates a brownish colormap.

Syntax:

COPPER(len)

len

-

Optional. An integer, the colormap length. Defaults to the length of the current colormap.

Returns:

A table of RGB triples suitable for the SETCOLORMAP function.

Example:

clen = length(getcolormap());

density(ravel(rep(0..(clen-1), 32), clen)');copper

 

image\coppermap.png

creates a table of 32 x N (where N == colormap length) RBG values and displays the resulting colors. The resulting image is a vertical plot of colors ranging from brown (lowest) to white (highest).

Example:

W1: cool;showcmap();

W2: copper;showcmap();

W3: hot;showcmap()

W4: pink;showcmap();

 

image\cchp.png

 

W1, W2, W3 and W4 display 32x256 sequential, dark to light colormaps where 256 is the colormap length. The colormaps are not perceptually uniform.

Remarks:

copper by itself sets the colormap and shading.

 

a = copper or setcolormap(copper) returns the RGB values. In this case, use SETSHADING to make the new colormap take effect on an existing density or 2D plot.

 

The COPPER colormap produces a smooth gradient that resembles the warm, reddish-brown tones of polished copper metal. It is often used when the GRAY colormap is desired, but with a warmer, more visually appealing tint.

See Also:

BONE

COOL

GRAY

HOT

PINK

RAINBOW

SETCOLORMAP

SETSHADING

SHOWCMAP