RGB valuesfor a color name
Scott Rossi
scott at tactilemedia.com
Fri Jul 3 17:05:15 EDT 2009
Recently, James Hurley wrote:
> I'm surprise that mouseColor is the only function that returns the RGV
> values of named colors.
This is the way I do it (requires an object). Starting with a graphic, for
example:
set the backColor of grc 1 to <colorname>
set the backPixel of grc 1 to the effective backPixel of grc 1
get the backcolor of grc 1
Not sure why it works, but it does for me.
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
More information about the use-livecode
mailing list