When is a color not a color
Peter Haworth
pete at lcsql.com
Sat Jun 8 12:26:52 EDT 2013
Thanks everyone. It seems "is a color" is broken. I did see the
dictionary entry about accepting a single integer as a color but this goes
beyond that.
I think I'll enter a bug report about it.
By way of context, I'm trying to identify what type of data is in custom
properties as part of a project I'm working on. For that purpose, looks
like I will test for all the other "is a" options first, then write my own
code to check for a color.
In order to do that, I need to be sure I'm aware of all valid color values.
As mentioned in my original post, I thought they were either three numbers
each between 0-255, a hex value, or a color name, but it sounds like it's
possible to have a 4th integer as an alpha channel? IS that correct?
Thanks,
Pete
lcSQL Software <http://www.lcsql.com>
On Fri, Jun 7, 2013 at 10:54 PM, J. Landman Gay <jacque at hyperactivesw.com>wrote:
> On 6/7/13 8:57 PM, Ralph DiMola wrote:
>
>> Pete,
>>
>> Isn't the 4th number the alpha channel?
>>
>
> That was my first thought too until the engine told me that
> "1,2,3,456,78,2013" was also a color. Seems it not only ignores the number
> ranges, but it only looks to see if there are (at least) 3 items.
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.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<http://lists.runrev.com/mailman/listinfo/use-livecode>
>
More information about the use-livecode
mailing list