GrayLevel
GrayLevel[g]
represents a color in the grayscale color space with gray level g.
GrayLevel[g,a]
specifies opacity a.
GrayLevel["string"]
returns a color from an HTML color name etc.
GrayLevel[color]
returns the grayscale representation of color.
Details
- GrayLevel is a color representing intensity in the monochrome grayscale color space as a shade of gray, where represents black and represents white.
- The gray level must be a number between 0 and 1. »
- On display devices with no native gray‐level capability, dither patterns are typically used.
- If no opacity has been specified, GrayLevel[g] is equivalent to GrayLevel[g,1].
- GrayLevel[g,a] is equivalent to {GrayLevel[g],Opacity[a]}. »
- The alternative forms GrayLevel[{g}] and GrayLevel[{g,a}] can also be used.
- ColorConvert can be used to convert between GrayLevel and other color spaces.
- Style[expr,GrayLevel[…]] specifies that expr should be displayed with the specified gray level. »
- For 3D surfaces, explicit GrayLevel directives define surface colors; the final shading depends on lighting.
Examples
open allclose allBasic Examples (4)
Scope (1)
Generalizations & Extensions (1)
Properties & Relations (1)
Possible Issues (2)
Wolfram Research (1988), GrayLevel, Wolfram Language function, https://reference.wolfram.com/language/ref/GrayLevel.html (updated 2021).
Text
Wolfram Research (1988), GrayLevel, Wolfram Language function, https://reference.wolfram.com/language/ref/GrayLevel.html (updated 2021).
CMS
Wolfram Language. 1988. "GrayLevel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/GrayLevel.html.
APA
Wolfram Language. (1988). GrayLevel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GrayLevel.html