Function: color-lighten-hsl

color-lighten-hsl is a byte-compiled function defined in color.el.gz.

Signature

(color-lighten-hsl H S L PERCENT)

Documentation

Make a color lighter by a specified amount.

Given a color defined in terms of hue, saturation, and luminance
(arguments H, S, and L), return a color that is PERCENT lighter.
Returns a list (HUE SATURATION LUMINANCE).

Source Code

;; Defined in /usr/src/emacs/lisp/color.el.gz
(defun color-lighten-hsl (H S L percent)
  "Make a color lighter by a specified amount.
Given a color defined in terms of hue, saturation, and luminance
\(arguments H, S, and L), return a color that is PERCENT lighter.
Returns a list (HUE SATURATION LUMINANCE)."
  (let ((p (/ percent 100.0)))
    (if (> p 0.0)
        (setq L (* L (- 1.0 p)))
      (setq p (- (* L (abs p)))))
    (list H S (color-clamp (+ L p)))))