Haloing

Haloing[]

is a twodimensional directive specifying that graphics objects are to be drawn with a halo.

Haloing[col]

uses the specified color col for the halo.

Haloing[col,w]

uses the specified width w for the halo.

Haloing[col,w,r]

applies a blur effect with radius r to the halo.

Details

  • Haloing is also known as halo effect.
  • Haloing is typically used to make graphics objects stand out from backgrounds.
  • Haloing[col] specifies that the halo should be drawn in col color.
  • Colors can be defined by RGBColor, Hue or any other color specification.
  • Haloing[col,w] uses the width w for the halo.
  • For negative width w, the halo is drawn inward.
  • Haloing[col,w,r] specifies that additional r printer's points should be blended into each other for a blur effect.
  • The radius r is measured in units of printer's points, equal before magnification to of an inch.
  • Haloing[] is effectively equivalent to Haloing[White,2,0].

Examples

open allclose all

Basic Examples  (3)

Apply a halo effect to text:

Plot curves with halos:

Show a map of the US with a halo:

Scope  (13)

Basic Uses  (7)

Apply halo to graphics primitives:

Apply halo to Text:

Apply halo to a plot:

Apply halo to a chart:

Style a geometric region:

Show a schematic outline map:

Summary box:

Specifications  (6)

Haloing with no arguments draws a small white halo with no blur around the object:

Specify the base width of the halo:

Specify the blur radius of the halo:

Specify a halo with a width and blur radius:

The halo color is set to White by default:

Set the halo color explicitly:

Use separate colors for the width and blur portions of the halo:

Specify a negative width to draw the halo inside the object:

Haloing accepts colors with Opacity:

The halo width and blur radius are specified in printer's points by default:

Use an ImageScaled width and blur radius:

Applications  (13)

Basic Applications  (1)

Show the halo effect with the halo width in yellow and blur radius in red:

The halo width:

The halo blur radius:

Adjust both the halo width and blur radius:

Use a negative width:

Halo Effects  (3)

Create a glow effect by using a large blur radius:

Add an outline to an object:

Approximate a drop shadow effect with no offset:

Graphics  (3)

Apply halo to graphics primitives:

Apply halo to Text:

Apply halo to a GraphicsComplex:

Visualization  (3)

Plot curves with halos:

Style bar charts:

Style parametric plots:

Cartography  (2)

Style country borders:

A colorful world map:

Astronomical Charts  (1)

Style the horizon line in AstroGraphics:

Possible Issues  (1)

Halos are drawn in the order in which their corresponding objects are defined in Graphics:

Use GraphicsGroup to draw the halo around a group of objects:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_haloing, organization={Wolfram Research}, title={Haloing}, year={2023}, url={https://reference.wolfram.com/language/ref/Haloing.html}, note=[Accessed: 05-November-2024 ]}