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

Alejandro Tejada capellan2000 at
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


View this message in context:
Sent from the Revolution - User mailing list archive at

More information about the Use-livecode mailing list