RGB valuesfor a color name
Richmond Mathewson
richmondmathewson at gmail.com
Sat Jul 4 03:45:48 EDT 2009
Wonderful what a night's sleep can do!
Uploaded new version of my stack to:
http://mathewson.110mb.com/FILEZ/COLORNAMER.rev.zip
that gets round the silly thing of having to click on a list field
to set the colour and then on a coloured graphic to get the
RGB values . . . mind you my solution, far from being
brilliant, just shows you how sluggish I was last night at
1 o'clock in the morning:
this is the code in the list field that contains the colorNames:
on mouseDown
get the clickText
put the clickText into fld "SELECT"
set the backgroundColor of fld "KNAMES" to the clickText
end mouseDown
on mouseUp
put the mouseColor into fld "fRGB"
end mouseUp
there is also a button for when the fld "KNAMES" goes black
and you cannot see the colorNames.
I'm off to my vittles!
More information about the use-livecode
mailing list