When manipulating colors, the output is shown as a textual expression like Hue[1/5], RGBColor[2/3, 1, 1/3], GrayLevel[3/5]. It can be hard to visualize what color these represent.
How can you quickly display the color itself on screen?
|
When manipulating colors, the output is shown as a textual expression like How can you quickly display the color itself on screen? |
||||
|
|
|
A simple way is to use a Where
You can also copy the result and use it as input in a notebook. Illustration:
|
|||
|
|
|
Evaluate (Shift+Enter) your code for color. In Mathematica 9 the suggestion bar will appear under the output with suggestion "swatch". Just click it and you'll get a square with that color.
|
|||
|
|
|
If you just want to know what a particular color looks like and don't have M9 you can set it up with
|
|||
|
|