Color names vs hex codes

Peter Haworth pete at lcsql.com
Wed Jan 9 12:22:18 EST 2013


Thanks for the solutions everyone.

Pete
lcSQL Software <http://www.lcsql.com>


On Tue, Jan 8, 2013 at 10:02 PM, Jan Schenkel <janschenkel at yahoo.com> wrote:

> Hi Peter,
>
> Here's the one-liner if you use Quartam Color Library for LiveCode:
> ##
> put qrtColor_RGBToHex(qrtColor_NameToRGB("AliceBlue")) into tHexColor
> ##
>
> Quartam Color Library is free / open source software under the
> commercial-friendly LGPL license.
> You can download it here: <
> http://downloads.quartam.com/libqrtcolor_100_xplatform.zip>
>
> Jan Schenkel.
>
> =====
> Quartam Reports & PDF Library for LiveCode
> www.quartam.com
>
>
> =====
> "As we grow older, we grow both wiser and more foolish at the same
> time."  (La Rochefoucauld)
>
>
> ________________________________
> From: Peter Haworth <pete at lcsql.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Sent: Wednesday, January 9, 2013 2:24 AM
> Subject: Color names vs hex codes
>
> I have a need to convert a color name form LC's colornames property to its
> equivalent hex value, or rgb value.  Can that be done in LC?
> Pete
> lcSQL Software <http://www.lcsql.com>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list