diff options
| -rw-r--r-- | lispref/frames.texi | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lispref/frames.texi b/lispref/frames.texi index a33c5b356be..f50be70f473 100644 --- a/lispref/frames.texi +++ b/lispref/frames.texi | |||
| @@ -1588,6 +1588,9 @@ but @code{t} on MS-Windows. | |||
| 1588 | @node Color Names | 1588 | @node Color Names |
| 1589 | @section Color Names | 1589 | @section Color Names |
| 1590 | 1590 | ||
| 1591 | @cindex color names | ||
| 1592 | @cindex specify color | ||
| 1593 | @cindex numerical RGB color specification | ||
| 1591 | A color name is text (usually in a string) that specifies a color. | 1594 | A color name is text (usually in a string) that specifies a color. |
| 1592 | Symbolic names such as @samp{black}, @samp{white}, @samp{red}, etc., | 1595 | Symbolic names such as @samp{black}, @samp{white}, @samp{red}, etc., |
| 1593 | are allowed; use @kbd{M-x list-colors-display} to see a list of | 1596 | are allowed; use @kbd{M-x list-colors-display} to see a list of |
| @@ -1597,7 +1600,9 @@ as @samp{#@var{rgb}} and @samp{RGB:@var{r}/@var{g}/@var{b}}, where | |||
| 1597 | and @var{b} specifies the blue level. You can use either one, two, | 1600 | and @var{b} specifies the blue level. You can use either one, two, |
| 1598 | three, or four hex digits for @var{r}; then you must use the same | 1601 | three, or four hex digits for @var{r}; then you must use the same |
| 1599 | number of hex digits for all @var{g} and @var{b} as well, making | 1602 | number of hex digits for all @var{g} and @var{b} as well, making |
| 1600 | either 3, 6, 9 or 12 hex digits in all. | 1603 | either 3, 6, 9 or 12 hex digits in all. (See the documentation of the |
| 1604 | X Window System for more details about numerical RGB specification of | ||
| 1605 | colors.) | ||
| 1601 | 1606 | ||
| 1602 | These functions provide a way to determine which color names are | 1607 | These functions provide a way to determine which color names are |
| 1603 | valid, and what they look like. In some cases, the value depends on the | 1608 | valid, and what they look like. In some cases, the value depends on the |
| @@ -1657,12 +1662,14 @@ color name, this function returns @code{nil}. | |||
| 1657 | 1662 | ||
| 1658 | @defun color-values color &optional frame | 1663 | @defun color-values color &optional frame |
| 1659 | @tindex color-values | 1664 | @tindex color-values |
| 1665 | @cindex rgb value | ||
| 1660 | This function returns a value that describes what @var{color} should | 1666 | This function returns a value that describes what @var{color} should |
| 1661 | ideally look like on @var{frame}. If @var{color} is defined, the | 1667 | ideally look like on @var{frame}. If @var{color} is defined, the |
| 1662 | value is a list of three integers, which give the amount of red, the | 1668 | value is a list of three integers, which give the amount of red, the |
| 1663 | amount of green, and the amount of blue. Each integer ranges in | 1669 | amount of green, and the amount of blue. Each integer ranges in |
| 1664 | principle from 0 to 65535, but some displays may not use the full | 1670 | principle from 0 to 65535, but some displays may not use the full |
| 1665 | range. This kind of three-element list is called an @dfn{rgb value}. | 1671 | range. This three-element list is called the @dfn{rgb values} of the |
| 1672 | color. | ||
| 1666 | 1673 | ||
| 1667 | If @var{color} is not defined, the value is @code{nil}. | 1674 | If @var{color} is not defined, the value is @code{nil}. |
| 1668 | 1675 | ||
| @@ -1704,11 +1711,8 @@ standard set of colors and will try to use them automatically. | |||
| 1704 | The functions described in this section control how terminal colors | 1711 | The functions described in this section control how terminal colors |
| 1705 | are used by Emacs. | 1712 | are used by Emacs. |
| 1706 | 1713 | ||
| 1707 | @cindex rgb value | 1714 | Several of these functions use or return @dfn{rgb values}, described |
| 1708 | Several of these functions use or return @dfn{rgb values}. An rgb | 1715 | in @ref{Color Names}. |
| 1709 | value is a list of three integers, which give the amount of red, the | ||
| 1710 | amount of green, and the amount of blue. Each integer ranges in | ||
| 1711 | principle from 0 to 65535, but some displays may not use the full range. . | ||
| 1712 | 1716 | ||
| 1713 | These functions accept a display (either a frame or the name of a | 1717 | These functions accept a display (either a frame or the name of a |
| 1714 | terminal) as an optional argument. We hope in the future to make Emacs | 1718 | terminal) as an optional argument. We hope in the future to make Emacs |