Function: erc-nicks--reduce

erc-nicks--reduce is a byte-compiled function defined in erc-nicks.el.gz.

Signature

(erc-nicks--reduce COLOR)

Documentation

Fold adjustment strategies over COLOR, a string or normalized triple.

Return a hex string.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-nicks.el.gz
(defun erc-nicks--reduce (color)
  "Fold adjustment strategies over COLOR, a string or normalized triple.
Return a hex string."
  (apply #'color-rgb-to-hex
         (seq-reduce (lambda (color strategy) (funcall strategy color))
                     erc-nicks-color-adjustments
                     (if (stringp color) (color-name-to-rgb color) color))))