HalftoneShading

HalftoneShading[]

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

HalftoneShading[d]

uses the density d of shading.

HalftoneShading[col]

uses dots with the specified color col.

HalftoneShading["shape"]

uses the specified "shape" as base pattern.

HalftoneShading[d,col,"shape"]

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

Details

  • 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
    "Hexagon"hexagon
    "Line"line
    "Square"square
    "Triangle"triangle
  • 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.

Examples

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:

Wolfram Research (2020), HalftoneShading, Wolfram Language function, https://reference.wolfram.com/language/ref/HalftoneShading.html.

Text

Wolfram Research (2020), HalftoneShading, Wolfram Language function, https://reference.wolfram.com/language/ref/HalftoneShading.html.

CMS

Wolfram Language. 2020. "HalftoneShading." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HalftoneShading.html.

APA

Wolfram Language. (2020). HalftoneShading. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HalftoneShading.html

BibTeX

@misc{reference.wolfram_2024_halftoneshading, author="Wolfram Research", title="{HalftoneShading}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/HalftoneShading.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_halftoneshading, organization={Wolfram Research}, title={HalftoneShading}, year={2020}, url={https://reference.wolfram.com/language/ref/HalftoneShading.html}, note=[Accessed: 21-November-2024 ]}