Re: Color names vs hex codes

2013-01-10 Thread Peter M. Brigham
I routinely swipe clever handlers from this list and store them in a library stack that is put in use on my LC startup. I try to give credit for these in comments, but I still have a few whose origins are unknown…. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On J

Re: Color names vs hex codes

2013-01-09 Thread J. Landman Gay
On 1/9/13 4:24 PM, Howard Bornstein wrote: Lol, thanks for reminding me of the source of this, Jacque. I knew I nabbed it from someone. I just couldn't remember whom. I wonder how many of us swiped that clever handler. :) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperAc

Re: Re: Color names vs hex codes

2013-01-09 Thread Howard Bornstein
Lol, thanks for reminding me of the source of this, Jacque. I knew I nabbed it from someone. I just couldn't remember whom. On Tue, Jan 8, 2013 at 10:26 PM, J. Landman Gay wrote: > That's what I use too. Credit to Ken Ray. :) Howard Bornstein < > bornst...@designeq.com> wrote:This is what I use:

Re: Color names vs hex codes

2013-01-09 Thread Peter Haworth
gt; = > 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 > To: How to u

RE: Re: Color names vs hex codes

2013-01-08 Thread J. Landman Gay
That's what I use too. Credit to Ken Ray. :) Howard Bornstein wrote:This is what I use: *function* RGBFromColorName theColor   *if* theColor is not a color *then* *return* "Error: not a color"   *-- create a temporary object for the color transformation:*   *create* invisible button   *if* t

Re: Color names vs hex codes

2013-01-08 Thread Jan Schenkel
From: Peter Haworth To: How to use LiveCode 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? P

Re: Color names vs hex codes

2013-01-08 Thread Howard Bornstein
This is what I use: *function* RGBFromColorName theColor *if* theColor is not a color *then* *return* "Error: not a color" *-- create a temporary object for the color transformation:* *create* invisible button *if* the result is not empty *then* *return* "Error" *set* the background

Color names vs hex codes

2013-01-08 Thread Peter Haworth
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 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit thi