GNU bug report logs - #74055
31.0.50; color-lighten-name not lightening black

Previous Next

Package: emacs;

Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Date: Mon, 28 Oct 2024 08:29:02 UTC

Severity: normal

Found in version 31.0.50

Fixed in version 31.1

Done: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: gerd.moellmann <at> gmail.com, julien <at> danjou.info, noah <at> splode.com, 74055 <at> debbugs.gnu.org
Subject: bug#74055: 31.0.50; color-lighten-name not lightening black
Date: Tue, 29 Oct 2024 13:54:45 +0100
28 okt. 2024 kl. 18.24 skrev Eli Zaretskii <eliz <at> gnu.org>:

> Maybe there are widely-accepted de-facto standards for that?

Perhaps the documentation should said 'percentage points' instead of just 'percent' to be unambiguous, since the lightness value is relative to the white-point.

I'd say the old model (percentage points) is better because it results in changes that are perceptually more uniform. For example, with the current code,

  (color-lighten-name C 5)

has much less effect when C is a dark colour than for a light one. Therefore the change was probably a mistake in hindsight.

> Or maybe we should support more than one interpretation, by way of
> some user option?

Don't think so -- only really a good solution for user preferences, not for an API.





This bug report was last modified 277 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.