Gray
represents the color gray in graphics or style specifications.
Background & Context
- Gray is a symbol that represents the color gray in graphics or style specifications. Color specifications in the Wolfram Language can appear explicitly inside a Graphics or Graphics3D expression (e.g. Graphics[{Gray,Disk[]}]), in which case they affect all subsequent expressions until another specification overrides them. They can also be used as part of an option specification, either singly (e.g. Plot[Sin[x],{x,0,2Pi},PlotStyle->Gray]) or as part of a Directive compound expression (e.g. Plot[Cos[x],{x,0,2Pi},PlotStyle->Directive[Thick,Gray]]). Finally, they can appear inside Style wrappers that affect the appearance of text, equations, and notebook cells (e.g. Style["hello",Gray]).
- Gray evaluates to GrayLevel[0].
- Named symbols for other colors include Red, Green, Blue, Black, White, Cyan, Magenta, Yellow, Brown, Orange, Pink, and Purple, as well as their LightRed etc. variants. Arbitrary grayscale colors can be input using GrayLevel. Arbitrary colors can be input using Hue, RGBColor, CMYKColor, LABColor, LUVColor, or XYZColor. Colors can be modified using Lighter, Darker, and Blend. Colors may be converted between different systems using ColorConvert. The appearance of colors appearing in Graphics3D objects may be controlled using Glow, Specularity, and Lighting. The transparency of colored graphics objectives can be specified using Opacity. ColorData can be used to give a function that generates colors in a named color scheme.
Examples
Basic Examples (1)
Wolfram Research (2004), Gray, Wolfram Language function, https://reference.wolfram.com/language/ref/Gray.html.
Text
Wolfram Research (2004), Gray, Wolfram Language function, https://reference.wolfram.com/language/ref/Gray.html.
CMS
Wolfram Language. 2004. "Gray." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Gray.html.
APA
Wolfram Language. (2004). Gray. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Gray.html