Skip to content

Commit ae2dccb

Browse files
committed
Document that some single char colors are shaded
1 parent 6e7dd77 commit ae2dccb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tutorials/colors/colors.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
case-insensitive);
1616
* a string representation of a float value in ``[0, 1]`` inclusive for gray
1717
level (e.g., ``'0.5'``);
18-
* one of ``{'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}``, they are the single
19-
character short-hand notations for blue, green, red, cyan, magenta, yellow,
20-
black, and white.
18+
* one of the characters ``{'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}``, which
19+
are short-hand notations for shades of blue, green, red, cyan, magenta,
20+
yellow, black, and white. Note that the colors ``'g', 'c', 'm', 'y'`` do not
21+
coincide with the X11/CSS4 colors. Their particular shades were chosen for
22+
better visibility of colored lines against typical backgrounds.
2123
* a X11/CSS4 color name (case-insensitive);
2224
* a name from the `xkcd color survey`_, prefixed with ``'xkcd:'`` (e.g.,
2325
``'xkcd:sky blue'``; case insensitive);

0 commit comments

Comments
 (0)