is a three-dimensional graphics directive specifying that surfaces that follow are to be drawn with a base pattern of dots.


uses the density d of shading.


uses dots with the specified color col.


uses the specified "shape" as base pattern.


uses a fixed pattern of "shape" with the specified color col and density d.


  • HalftoneShading is also known as halftoning.
  • HalftoneShading is typically used to mimic continuous-tone with a base pattern of shapes whose size will vary to mimic to the correct luminosity on the surface.
  • HalftoneShading[d,col,"shape"] specifies that the surface should be drawn with the shapes "shape" of color col with a density of shapes per area given by d.
  • The shape density d is between 0 and 1. A higher value indicates more shapes per area.
  • The color col can be defined by RGBColor, Hue or any other color specification.
  • Possible "shape" values include:
  • "Disk"disk
  • The default value for the density is 0.5, the color Black, and the shape is taken to be "Disk".
  • HalftoneShading[] is effectively equivalent to HalftoneShading[0.5,Black,"Disk"].
  • The setting Lighting"Accent" uses a directional light and faithfully reproduces colors on the surface.


open allclose all

Basic Examples  (3)

Apply halftone shading to the unit sphere with a directional light:

Style a surface in a plot:

Show a sailing ship using a halftone:

Scope  (12)

Basic Uses  (5)

Apply halftone shading to a graphics primitive:

Apply halftone shading to a plot:

Apply halftone shading to a chart:

Apply halftone shading to a 3D object:

Summary box:

Specification  (4)

HalftoneShading with no arguments uses gray tones:

Apply halftone shading to the unit sphere with different densities:

Use colorized halftone shading:

Use different shapes:

Lighting  (3)

HalftoneShading works with all types of lights:

Use colored lights:

Use "Accent" lighting to faithfully reproduce colors on the surface.

Possible Issues  (2)

The default light scheme uses several colored light sources:

Use a single directional light to get the standard hatching shading effect:

No shading effect is applied to faces of polygons or filled graphic objects:

Introduced in 2020