emacs-devel
[Top][All Lists]
Advanced

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

Re: Adding some convenience functions to color.el


From: Yilkal Argaw
Subject: Re: Adding some convenience functions to color.el
Date: Fri, 9 Jun 2023 10:26:57 +0300

  > From: Eli Zaretskii <eliz@gnu.org>
  > We already have color-dark-p (and color-name-to-rgb to complement it),
   > so I'm not sure I understand the rationale for these functions.  Can
   > you explain more why you needed them?

Sorry I totally missed color-dark-p. I did not check faces.el and color-dark-p was in faces.el.
Having color-name-to-hsl is just a convenience function to make it easier when working in some
color spaces. Because some operations are easier in certain color spaces.


On Fri, Jun 9, 2023 at 9:55 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Yilkal Argaw <yilkalargawworkneh@gmail.com>
> Date: Fri, 9 Jun 2023 02:57:41 +0300
>
> Today I was messing around with some theme that  made use of color.el and I noticed some functions
> that might be of use could be added to color.el to help with the conditionally assigning setting some
> colors based on lightness or darkness of some other color. I wondered if it might be useful to other
> users and if it might be worth adding it to color.el. I

We already have color-dark-p (and color-name-to-rgb to complement it),
so I'm not sure I understand the rationale for these functions.  Can
you explain more why you needed them?

reply via email to

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