Function: hfy-color-vals
hfy-color-vals is a byte-compiled function defined in
htmlfontify.el.gz.
Signature
(hfy-color-vals COLOR)
Documentation
Return a list of three (16 bit) rgb values for COLOR.
COLOR is a color name or #XXXXXX style triplet.
If a window system is unavailable, calls hfy-fallback-color-values.
Probably introduced at or before Emacs version 27.1.
Aliases
hfy-colour-vals (obsolete since 27.1)
Source Code
;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
(defun hfy-color-vals (color)
"Return a list of three (16 bit) rgb values for COLOR.
COLOR is a color name or #XXXXXX style triplet.
If a window system is unavailable, calls `hfy-fallback-color-values'."
(if (string-match hfy-triplet-regex color)
(mapcar
(lambda (x) (* (string-to-number (match-string x color) 16) 257))
'(1 2 3))
;;(message ">> %s" color)
(if window-system
(color-values color)
;; blarg - tty colors are no good - go fetch some X colors:
(hfy-fallback-color-values color))))