aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2005-02-05 13:19:39 +0000
committerEli Zaretskii2005-02-05 13:19:39 +0000
commitf705df79df27ad3eb4485d0272d6325beb0d1f36 (patch)
tree24945c205d168a565ab2af60ed5e351ccd475d25
parent3ee341ecadcabbdfd4f666b1aef6e18aaac1d36f (diff)
downloademacs-f705df79df27ad3eb4485d0272d6325beb0d1f36.tar.gz
emacs-f705df79df27ad3eb4485d0272d6325beb0d1f36.zip
(Color Names): Add pointer to the X docs about RGB
color specifications. Improve indexing (Text Terminal Colors): Replace the description of RGB values by an xref to "Color Names".
-rw-r--r--lispref/frames.texi18
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.
1592Symbolic names such as @samp{black}, @samp{white}, @samp{red}, etc., 1595Symbolic names such as @samp{black}, @samp{white}, @samp{red}, etc.,
1593are allowed; use @kbd{M-x list-colors-display} to see a list of 1596are 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
1597and @var{b} specifies the blue level. You can use either one, two, 1600and @var{b} specifies the blue level. You can use either one, two,
1598three, or four hex digits for @var{r}; then you must use the same 1601three, or four hex digits for @var{r}; then you must use the same
1599number of hex digits for all @var{g} and @var{b} as well, making 1602number of hex digits for all @var{g} and @var{b} as well, making
1600either 3, 6, 9 or 12 hex digits in all. 1603either 3, 6, 9 or 12 hex digits in all. (See the documentation of the
1604X Window System for more details about numerical RGB specification of
1605colors.)
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
1603valid, and what they look like. In some cases, the value depends on the 1608valid, 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
1660This function returns a value that describes what @var{color} should 1666This function returns a value that describes what @var{color} should
1661ideally look like on @var{frame}. If @var{color} is defined, the 1667ideally look like on @var{frame}. If @var{color} is defined, the
1662value is a list of three integers, which give the amount of red, the 1668value is a list of three integers, which give the amount of red, the
1663amount of green, and the amount of blue. Each integer ranges in 1669amount of green, and the amount of blue. Each integer ranges in
1664principle from 0 to 65535, but some displays may not use the full 1670principle from 0 to 65535, but some displays may not use the full
1665range. This kind of three-element list is called an @dfn{rgb value}. 1671range. This three-element list is called the @dfn{rgb values} of the
1672color.
1666 1673
1667If @var{color} is not defined, the value is @code{nil}. 1674If @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
1705are used by Emacs. 1712are 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 1715in @ref{Color Names}.
1709value is a list of three integers, which give the amount of red, the
1710amount of green, and the amount of blue. Each integer ranges in
1711principle 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
1714terminal) as an optional argument. We hope in the future to make Emacs 1718terminal) as an optional argument. We hope in the future to make Emacs