|int *array||An array of color values or patterns to be used when shading
a 3-D surface.
The array must be nlevel elements long.
|int nlevel||The number of color changes that will take place from minimum z to maximum z.|
|int mesh||A combination of bit flags with the following meanings:
= 0 for no mesh.
= DRAW_MESH if the 3-D mesh is to be seen. The color will be based on the average of a cell's corner values if no other flags are on.
= FILL_ON_CONTOURS if the color changes are to occur at z contour levels. No borders will be drawn on contour boundaries.
= COLOR_ON_X if the color changes are to be determined by the value of x. This will create bands of color in the y-direction.
= COLOR_ON_Y if the color changes are to be determined by the value of y. This will create bands of color in the x-direction.
|d3color() has been replaced by d3colorL().
d3colorL() causes a 3-D surface to be filled with the colors specified in an array that corresponds to height levels. The minimum z value will be the color set by the first value in the array, and the maximum z value will use the last value. If mesh is equal to 0 or DRAW_MESH the color for any given mesh grid is determined by averaging the z values at the corners of the area. Otherwise the surface will be banded with coloring based on the value of mesh as described above. For example, if mesh = DRAW_MESH | FILL_ON_CONTOURS, the plot will be a 3-D shaded contour plot with the x-y mesh shown.