bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54514: incorrect arithmetic in color-lighten-hsl?


From: Lars Ingebrigtsen
Subject: bug#54514: incorrect arithmetic in color-lighten-hsl?
Date: Tue, 22 Mar 2022 15:28:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Noah Friedman <noah@splode.com> writes:

> I think it should be:
>
>       (defun color-lighten-hsl (H S L percent)
>         ...
>         (list H S (color-clamp (+ L (* L (/ percent 100.0))))))

I think that has to be correct, so I went ahead and made that change on
the trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]