number of colornames?
Mark Schonewille
m.schonewille at economy-x-talk.com
Sun Feb 11 16:43:27 EST 2007
Wayne,
Not every colour has a name. There are (apparently) 552 named colours
and many more unnamed colours, assuming that there are approximately
255^3 different colours. The colorNames function returns all of the
552 named colours.
There used to be a PANTONE colours library stack in the user
contributions collection on the Revolution site, which could be
interesting for you, but this collection is no longer available.
Maybe someone still has that stack and is willing to make it available?
Best,
Mark
--
Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Get your store on-line within minutes with Salery Web Store software.
Download at http://www.salery.biz
Op 11-feb-2007, om 21:44 heeft wayne durden het volgende geschreven:
> Hi Joe:
>
> I actually discovered that fact too by adding additional numbers to
> my loop
> (actually 15 more cds with 100 colors each til the end). But the
> problem is
> why does the number of lines of colornames() yield fewer? The
> number of
> lines of colornames yields 552, but there look to be about 2000'ish
> colornames?
>
> My suspicion is that this is related to associative array with same
> name
> issues but not sure. More importantly how ahead of time would I
> structure
> the loop to take me to the end? Perhaps a while not "" I guess?
> Thanks
> Joe!
>
> wayne
More information about the use-livecode
mailing list