Merge some code from hexrgb.el into color.el.
authorChong Yidong <cyd@stupidchicken.com>
Mon, 21 Feb 2011 06:03:36 +0000 (01:03 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 21 Feb 2011 06:03:36 +0000 (01:03 -0500)
commit6d7132563c23774dddcd825797a29ce7ae94253a
tree28a2b790f0a182a17c3936d087b008b47086239d
parent6b483b66430254ac219305874dce0ee15ab09eda
Merge some code from hexrgb.el into color.el.

* lisp/color.el (color-name-to-rgb): Rename from color-rgb->normalize.
Autoload.  Add optional arg FRAME, and pass it to color-values.
(color-complement): Caller changed.  Doc fix.
(color-gradient): Rewrite for better clarity and efficiency.
(color-rgb-to-hex): Rename from color-rgb->hex.
(color-rgb-to-hsv): Rename from color-rgb->hsv.  Force hue and
saturation to zero if the value is too small.
(color-rgb-to-hsl): Rename from color-rgb->hsl.
(color-srgb-to-xyz): Rename from color-srgb->xyz.  Doc fix.
(color-xyz-to-srgb): Rename from color-xyz->srgb.  Doc fix.
(color-xyz-to-lab): Rename from color-xyz->lab.  Doc fix.
(color-lab-to-xyz): Rename from color-lab->xyz.  Doc fix.
(color-lab-to-srgb): Rename from color-lab->srgb.  Doc fix.
(color-cie-de2000): Doc fix.

* lisp/facemenu.el (color-rgb-to-hsv): Deleted; use the version in
lisp/color.el instead.
(list-colors-sort-key, list-colors-print): Use
color-normalized-values.

* lisp/faces.el (color-values): Use cond for clarity.  Doc fix.

* lisp/gnus/shr-color.el (shr-color->hexadecimal): Use renamed
function names color-rgb-to-hex, color-name-to-rgb,
color-srgb-to-lab, and color-lab-to-srgb.
lisp/ChangeLog
lisp/color.el
lisp/facemenu.el
lisp/faces.el
lisp/gnus/ChangeLog
lisp/gnus/shr-color.el