Sets the range of colors used in shading on systems which support dynamic color assignment.
SETSHADING("color1", "color2", ..., "colorN")
"colorN" |
- |
A list of strings representing the colors |
W1: setshading("black", "white");showcmap()
W2: setshading("black", "magenta");showcmap()
W3: setshading("black", "yellow");showcmap()
W4: setshading("black", "lcyan");showcmap()

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.
W1: spline2(rand(10), 5);setplottype(4);setshading("lred", "yellow", "lgreen")

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.
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:
Red, orange, yellow colormap |
|
Blue tinted gray scale colormap |
|
Blue, green, yellow colormap |
|
Shades of blue |
|
Shades of copper colormap |
|
Repeating red, orange, yellow, green, blue, violet colormap. |
|
Blue, green, yellow colormap |
|
Black & white colormap |
|
Black, red, yellow, white colormap |
|
Red, yellow, green, cyan, blue, magenta, red colormap |
|
Magenta, red, yellow colormap |
|
Magenta, red, yellow colormap |
|
Blue, green, yellow, orange colormap |
|
Black, red, yellow, white light colormap |
|
Magenta, red, yellow colormap |
|
Repeating red, orange, yellow, green, blue, violet colormap. |
|
Visible color spectrum colormap |
|
Magenta, pink, yellow colormap |
|
Green to yellow colormap |
|
Red, blue, green, yellow colormap |
|
Blue, green, yellow colormap |
|
Blue to green colormap |