DOCUMENTATION CENTER SEARCH
Mathematica
>
Colors
>
Built-in
Mathematica
Symbol
RGBColor
Hue
Lighter
Darker
Black
White
Gray
Raster
Opacity
Blend
Lighting
ColorSlider
See Also »
|
Colors
Graphics Directives
More About »
GrayLevel
GrayLevel
[
level
]
is a graphics directive which specifies the gray-level intensity with which objects that follow should be displayed.
GrayLevel
[
g
,
a
]
specifies opacity
a
.
MORE INFORMATION
The gray level must be a number between
0
and
1
.
»
0
represents black;
1
represents white.
On display devices with no native gray-level capability, dither patterns are typically used.
For 3D surfaces, explicit
GrayLevel
directives define surface colors; the final shading depends on lighting.
In
GrayLevel
[
g
,
a
]
,
a
is an "alpha channel" used to specify opacity.
GrayLevel
[
g
,
a
]
is equivalent to
{GrayLevel[
g
],
Opacity
[
a
]}
.
»
If no opacity has been specified,
GrayLevel
[
g
]
is equivalent to
GrayLevel
[
g
, 1]
.
Style
[
expr
, GrayLevel[
...
]]
specifies that
expr
should be displayed with the specified gray level.
»
EXAMPLES
CLOSE ALL
Basic Examples
(4)
Specify the gray level of graphics primitives:
In[1]:=
Out[1]=
Specify the gray level with opacity:
In[1]:=
Out[1]=
Specify the output gray level of expressions:
In[1]:=
Out[1]=
Specify the gray level of plots:
In[1]:=
Out[1]=
Scope
(1)
Generalizations & Extensions
(1)
Properties & Relations
(1)
Possible Issues
(2)
Neat Examples
(2)
SEE ALSO
RGBColor
Hue
Lighter
Darker
Black
White
Gray
Raster
Opacity
Blend
Lighting
ColorSlider
MORE ABOUT
Colors
Graphics Directives
New in 1 | Last modified in 6
© 2008 Wolfram Research, Inc.