SETSHADING

Purpose:

Sets the range of colors used in shading on systems which support dynamic color assignment.

Syntax:

SETSHADING("color1", "color2", ..., "colorN")

"colorN"

-

A list of strings representing the colors

Example:

W1: setshading("black", "white");showcmap()

W2: setshading("black", "magenta");showcmap()

W3: setshading("black", "yellow");showcmap()

W4: setshading("black", "lcyan");showcmap()

 

image\setshade1.png

W1 creates and displays a black to white colormap.

 

W2 creates and displays a black to magenta colormap.

 

W3 creates and displays a black to yellow colormap.

 

W4 creates and displays a black to cyan colormap.

Example:

W1: spline2(rand(10), 5);setplottype(4);setshading("lred", "yellow", "lgreen")

 

 

image\setshade2.png

 

creates a 3D surface and shades the surface with smoothly graded palette of colors ranging from light red, to yellow through light green. The number of shades created depends on machine resources available.

Remarks:

SETSHADING sets the shading scheme for the entire Worksheet, but each Window can use either the smooth shades or its private palette of discrete colors (see SETPALETTE).

 

For any given Window, the discrete colors are in effect by default until SETSHADING is used in that Window.

 

See CLEARSHADING to remove shading from a Window.

 

See SETCOLORMAP to generate colormaps from RGB triple values.

 

The following built-in colormaps are available:

 

AUTUMN

Red, orange, yellow colormap

BONE

Blue tinted gray scale colormap

CIVIDIS

Blue, green, yellow colormap

COOL

Shades of blue

COPPER

Shades of copper colormap

FLAG

Repeating red, orange, yellow, green, blue, violet colormap.

GOULDIAN

Blue, green, yellow colormap

GRAY

Black & white colormap

HOT

Black, red, yellow, white colormap

HSV

Red, yellow, green, cyan, blue, magenta, red colormap

INFERNO

Magenta, red, yellow colormap

MAGMA

Magenta, red, yellow colormap

PARULINE

Blue, green, yellow, orange colormap

PINK

Black, red, yellow, white light colormap

PLASMA

Magenta, red, yellow colormap

PRISM

Repeating red, orange, yellow, green, blue, violet colormap.

RAINBOW

Visible color spectrum colormap

SPRING

Magenta, pink, yellow colormap

SUMMER

Green to yellow colormap

TURBO

Red, blue, green, yellow colormap

VIRIDIS

Blue, green, yellow colormap

WINTER

Blue to green colormap

See Also:

CLEARSHADING

SETCOLORMAP

SETPALETTE

SHADEWITH