04-27-2024, 05:09 AM
(04-27-2024, 02:40 AM)PixLab Wrote:(04-26-2024, 10:24 PM)Krikor Wrote: Hi PixLab,
If I told you:
"Plenty of apps to show the RGB value of any pixel on your screen, directly or indirectly. With Gimp only: File > Create > Screen shot plus pointer dialog, on Linux you probably have xmag already installed."
Would that be enough of an answer for you?
yes, I have Gpick and MATE color picker, but they give hexa, RGB and HSL, but not the "Hexadecimal" as #123, but #123456...
How do you transform #123456 to ➤ #123?
if simple color could work, like #ff00ff ➤ #f0f, how do you do #2a64c2 to #123? Do you do (2+a)/2, then (6+4)/2 and (c+2)/2 ?You raised a great question.
As I wrote before, I found the solution by chance, just by paying attention to a small detail and Eureka!
But I only did this once, which was in the example I posted, and I didn't realize that there could be other cases like the one you mentioned (#2a64c2).
So I tried to figure out how to do the conversion for the case of repeated pair codes (aabbcc, 112233, etc).
I wasn't able to.
But, my failure was that I tried to find a color # on the Guess My RGB website that was not a repeating pair and see what code would be generated.
With this I would try to understand how the conversion was done, trying to achieve the same result.
What happened is that I tried on almost 20 new colors and they were all in the form of repeating pairs.
Therefore, I believe that there will not be colors like #2a64c2 among the colors generated on the website, but always colors in pairs.
.....
Samj Portable - Gimp 2.10.28 - Win-10 /64.
Samj Portable - Gimp 2.10.28 - Win-10 /64.