• Eli Zaretskii's avatar
    Fix color component calculations in color.el · 7b00e956
    Eli Zaretskii authored
    * lisp/color.el (color-name-to-rgb): Use 16 bits per color component.
    (color-rgb-to-hex): Accept an optional argument
    DIGITS-PER-COMPONENT, defaulting to 4, and format the hexadecimal
    notation either for 8 or 16 bits per component.  (Bug#25890)
    * lisp/net/shr-color.el (shr-color->hexadecimal): Call
    color-rgb-to-hex with the optional argument of 2, to match color
    processing on the Web.
    7b00e956
shr-color.el 12.9 KB