DADiSP Worksheet Functions > Function Categories > 3D and 4D Graphics > SETSHADING
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: 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.