[Sugar-devel] Hello guys please i want to ask if any one can help me on how to convert colors that are in hex to the color name :)
amaaniqbal2786 at gmail.com
Sat Dec 1 00:32:28 EST 2018
As James pointed out, there is very less color names than all possible hex
colors. There are in total 256*256*256 different RGB colors combinations
and it's silly if someone starts to assign them names. Even many colors can
be formed by a range of RGB combinations which cannot be distinguished.
Maybe we can help more if you could tell for what purpose it's required.
On Dec 1, 2018 1:30 AM, "Sean DALY" <sdaly.be at gmail.com> wrote:
> One possible approach could be to model a hex-name lookup table such as on
> this page , rounding to the nearest named color. Some ideas are here .
> 1. https://imagemagick.org/script/color.php
> 2. https://stackoverflow.com/questions/38923744/how-to-map-
> On Thu, Nov 29, 2018 at 4:47 PM Walter Bender <walter.bender at gmail.com>
>> Not a very easy task. I have some code that could get you a Munsell
>> representation of the color (the hue designation as well as its lightness
>> and vividness, but you'd still need to determine that dark orange == brown,
>> On Thu, Nov 29, 2018 at 4:17 PM Joel Arrey <joeloedinho at gmail.com> wrote:
>>> Sugar-devel mailing list
>>> Sugar-devel at lists.sugarlabs.org
>> Walter Bender
>> Sugar Labs
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Sugar-devel