HATCHCOLOR

Purpose:

Sets the color of 3D cross-hatching.

Syntax:

HATCHCOLOR(win, color)

win

-

Optional. A window, defaults to the current Window.

color

-

An integer. The color index.

Returns:

Nothing.

Example:

(x, y) = fxyvals(-2, 2, 0.1, -2, 2, 0.1);

sin(x*y);setplottype(4);pink();hatchcolor(seriesdarkred);

 

Cross-hatch Color

 

creates a shaded 3D plot of sin(x*y) with red cross-hatching.

Remarks:

HATCHCOLOR is distinct from the background GRIDCOLOR of a 3D plot.

 

See SETHATCH to control the hatch interval and direction.

See Also:

GRIDCOLOR

PLOT3D

SETHATCH

SETPLOTTYPE