Function: ghostel--hex-color-scheme

ghostel--hex-color-scheme is a natively compiled function defined in ghostel-faces.el.

Signature

(ghostel--hex-color-scheme HEX)

Documentation

Return light or dark for HEX ("#RRGGBB") as color-dark-p judges it.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-faces.el
(defun ghostel--hex-color-scheme (hex)
  "Return `light' or `dark' for HEX (\"#RRGGBB\") as `color-dark-p' judges it."
  (if (color-dark-p (mapcar (lambda (i)
                              (/ (string-to-number (substring hex i (+ i 2)) 16)
                                 255.0))
                            '(1 3 5)))
      'dark 'light))