How do I find the rgb values for colors defined by their name: e.g. blue, green, yellow etc.

Peter Haworth pete at lcsql.com
Tue Dec 10 23:27:18 EST 2013


The asterisks seem to happen when I copy and paste from LC to my mail
system (gmail).  They don't show up in the message when I send it but
somehow insinuate themselves somewhere out there in the great unknown
cloud.  Maybe the NSA put them there, who knows.

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


On Tue, Dec 10, 2013 at 6:44 PM, James Hurley <jhurley0305 at sbcglobal.net>wrote:

> Thanks Pete (and Walt and Richard),
>
> That is perfect. Very imaginative. (*But* *why* *all* *the* *asterisks?)
>
> (Replace “*” with space in …..)
>
> And about that Template Button, Riichard. I speak only Pigeon LC.
>
> Jim
>
>
>
> > Message: 11
> > Date: Mon, 9 Dec 2013 16:17:33 -0800
> > From: Peter Haworth <pete at lcsql.com>
> > To: How to use LiveCode <use-livecode at lists.runrev.com>
> > Subject: Re: How do I find the rgb values for colors defined by their
> >       name:   e.g. blue, green, yellow etc.
> > Message-ID:
> >       <
> CAGDT7eO20g9REdf+JzXC4qn_YceC58CHrVNG9Y_adkwRMaQkPA at mail.gmail.com>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > I'll try that again with better formatting:
> >
> > *function* RGBFromColorName theColor
> >   *if* theColor is not a color *then* *return* "Error: not a color"
> >   *create* invisible button
> >   *if* the result is not empty *then* *return* "Error"
> >   *set* the backgroundColor of last button to theColor
> >   *set* the backgroundPixel of last button to the backgroundPixel of last
> > button
> >   *get* the backgroundColor of last button
> >   *delete* last button
> >   *return* it
> > *end* RGBFromColorName
> >
> > 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
>



More information about the Use-livecode mailing list