[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 :)
Amaan Iqbal
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.
Regards,
Amaan
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 [1], rounding to the nearest named color. Some ideas are here [2].
>
> Sean
>
> 1. https://imagemagick.org/script/color.php
> 2. https://stackoverflow.com/questions/38923744/how-to-map-
> a-range-of-hex-values-to-a-color
>
>
>
> On Thu, Nov 29, 2018 at 4:47 PM Walter Bender <walter.bender at gmail.com>
> wrote:
>
>> 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,
>> etc.
>>
>> 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
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>
>>
>> --
>> Walter Bender
>> Sugar Labs
>> http://www.sugarlabs.org
>> <http://www.sugarlabs.org>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20181201/4d0f1180/attachment-0001.html>
More information about the Sugar-devel
mailing list