How do I find the rgb values for colors defined by their name: e.g. blue, green, yellow etc.

Alejandro Tejada capellan2000 at gmail.com
Tue Dec 10 20:06:35 EST 2013


Stephen Barncard-4 wrote
> ​sure you can.  But a human needs to be involved in the substitution.
> Create a list with all the standard color names converted to RGB values-
> put the name, a comma and the triplet on each line.​
> 
> then do a search to find a matching triplet
> 
> if found, display the name. If not, present an answer color dialog showing
> the un-named color, allowing the substitution of a near neighbor.

Actually, as RGB colors are just numbers, it should possible to
create a pattern matching function to look up for the
nearest color in the Named colors list... :)

If I do not have this headache, I will be testing this idea
just for fun... :o

Al 



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-do-I-find-the-rgb-values-for-colors-defined-by-their-name-e-g-blue-green-yellow-etc-tp4673481p4673553.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list