|
From: | Jim Porter |
Subject: | Re: [PATCH] color-hsv-to-rgb |
Date: | Thu, 19 Oct 2023 12:58:36 -0700 |
On 10/16/2023 12:59 AM, Stefan Kangas wrote:
Dov Grobgeld <dov.grobgeld@gmail.com> writes:I would like to do my first(!) contribution to emacs with the attached patch. Is there interest, or is it too trivial? Do I need to do a copyright assignment? Is there a guide for dummies on how to do that?Welcome to Emacs! I don't see why we couldn't take a patch implementing the inverse of `color-rgb-to-hsv', so I think there's interest. It would be interesting to know what you need it for, though.
For what it's worth, I thought about adding this function too. I would use it for a custom theme to choose colors for 'vc-annotate'. My hypothetical code would take a starting color (in RGB), convert to HSV, and then increment the value component to produce gradually lighter colors. After that, I'd need a way to convert back to RGB to make the hex string for the face attribute, hence this new function.
(Even better would be conversions between RGB and LCh, but that's a bigger project.)
[Prev in Thread] | Current Thread | [Next in Thread] |