PINK

Purpose:

Generates a light colormap of black, red, yellow and white.

Syntax:

PINK(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)');pink

 

image\pinkmap.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 black (lowest) to white (highest).

Example:

W1: cool;showcmap()';scalesoff;label("cool")

W2: copper;showcmap()';scalesoff;label("copper")

W3: hot;showcmap()';scalesoff;label("hotl")

W4: pink;showcmap()';scalesoff;label("pink")

 

 

image\cchp.png

 

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

Remarks:

pink by itself sets the colormap and shading.

 

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

 

The PINK colormap produces a smooth gradient that resembles a soft, pastel gray scale with a gentle pink tint. It is often used when a colormap lighter and more delicate than GRAY is desired.

See Also:

AUTUMN

BONE

COOL

COPPER

GRAY

HOT

INFERNO

MAGMA

RAINBOW

SETCOLORMAP

SETSHADING

SHOWCMAP

SPRING