[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Re: [PATCH] color-hsv-to-rgb
From: |
Drew Adams |
Subject: |
RE: [External] : Re: [PATCH] color-hsv-to-rgb |
Date: |
Fri, 20 Oct 2023 21:04:55 +0000 |
> It is hard for anyone but you to know what
> is your POV on this issue.
I don't have a POV on what else in `hexrgb.el'
might be missing from `color.el' and might want
to be added now by Emacs Dev. And that's what
I said, at the outset of my reply to Stefan's
question:
"Sorry, but I don't know"
All of hexrgb.el was considered when `color.el'
was being created, including `hexrgb-hsv-to-rgb'.
Whatever was wanted was used, and that didn't
include `hexrgb-hsv-to-rgb'.
I mentioned that function in this thread only
because of the thread Subject. Would you have
preferred that I not mention it? I figured
its code might help in some way, as well as
the fact that I (too) think such a function is
useful. The latter was the main reason I wrote
to the thread: to say +1 to Jim's +1 to Dov's
request. That's the main msg: it's useful.
There's no need for me to guess what else you
might be interested in. If you're interested,
just take a look at the available functions.
It's not like there are zillions of them, and
they're all handily listed in one place, with
clear names.
As I said, I haven't looked at this code since
2018, and likewise `color.el'. If someone is
interested in investigating the differences
they are as capable as I am for that.
And again, I have no POV about "main things
besides `color-hsv-to-rgb'".
___
A quick look now at `color.el' shows it's
mostly about color conversion, not color
modification, HSL being the sole exception,
and only for S and L. `hexrgb.el' has eight
functions for incrementing/decrementing:
+/- R, G, B individually and together
+/- H, S, V individually
+/- hex digits together
Why `color.el' has separate functions (8 of
them!) for the two directions to increment
only S and L is a mystery. With `hexrgb.el',
just use a negative increment to decrement.
`hexrgb.el' also has functions to modify a
color by complementing only one component: red/green/blue/hue/saturation/value.
E.g.,
complementing hue doesn't change saturation
or value.
(hexrgb-hue-complement "LightBlue")
; => "#E6E5BBBAADAC"
HTH.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: [External] : Re: [PATCH] color-hsv-to-rgb,
Drew Adams <=