BUILT-IN MATHEMATICA SYMBOL

# Hue

Hue[h]
is a graphics directive which specifies that objects which follow are to be displayed, if possible, in a color corresponding to hue h.

Hue[h, s, b]
specifies colors in terms of hue, saturation, and brightness.

Hue[h, s, b, a]
specifies opacity a.

## DetailsDetails

• The parameters h, s, b, and a must all be between and . Values of s, b, and a outside this range are clipped. Values of h outside this range are treated cyclically. »
• As h varies from to , the color corresponding to Hue[h] runs through red, yellow, green, cyan, blue, magenta, and back to red again. »
• Hue[h] is equivalent to Hue[h, 1, 1]. »
• The alternative forms Hue[{h, s, b}] and Hue[{h, s, b, a}] can also be used. »
• On monochrome output devices, a gray level based on the brightness value is used.
• For 3D surfaces, explicit Hue directives define surface colors; the final shading depends on lighting.
• Glow[Hue[...]] specifies color independent of lighting. »
• In Hue[h, s, b, a], a is an "alpha channel" used to specify opacity.
• Hue[h, s, b, a] is equivalent to {Hue[h, s, b], Opacity[a]}. »
• If no opacity has been specified, Hue[h, s, b] is equivalent to Hue[h, s, b, 1].
• Style[expr, Hue[...]] specifies that expr should be displayed with the specified color. »

## ExamplesExamplesopen allclose all

### Basic Examples (4)Basic Examples (4)

Specify the color of graphics primitives:

 Out[1]=

Specify the color with opacity:

 Out[1]=

Specify the output color of expressions:

 Out[1]=

Specify the color of plots:

 Out[1]=