[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 :)

Sean DALY sdaly.be at gmail.com
Fri Nov 30 14:59:21 EST 2018


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20181130/43f5f31c/attachment.html>


More information about the Sugar-devel mailing list