Equivalence of Color names to RGB
Dar Scott
dsc at swcp.com
Sun Jul 4 10:56:51 EDT 2004
On Jul 3, 2004, at 10:50 PM, MisterX wrote:
> That's interesting! Here's what i wrote up some time ago
>
> -- LUT = lookupTable
> local rclut,rgblut
> on generateLUTs
> put the colornames into colorslist
> repeat for each line c in colorslist
> set the backcolor of btn 1 to c
> get the backcolor of btn 1
> put it into clut[c]
> put c&tab&it & cr after rgblut
> end repeat
Arg!
I thought about that, and ran a quick test, but got the color name
again. I must have done something wrong.
Dar
More information about the use-livecode
mailing list