Mathematica > Visualization and Graphics > Graphics Options & Styling > Colors >
Mathematica > Data Manipulation > Image Processing & Analysis > Color Processing > Colors >
Mathematica > Visualization and Graphics > Symbolic Graphics Language > Graphics Directives > Colors >

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.
  • 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.
  • Style[expr, GrayLevel[...]] specifies that expr should be displayed with the specified gray level.  »
New in 1 | Last modified in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team