Re: Find nearest color in an RGB list

2012-01-11 Thread Nonsanity
Yeay! One always worries about code written IN the email... :) ~ Nonsanity On Tue, Jan 10, 2012 at 3:31 PM, Michael Doub m...@doub.com wrote: This works like a charm! Thanks, Mike On 2012-01-10, at 3:03 PM, Nonsanity wrote: Both look like good suggestions for getting the closest

Find nearest color in an RGB list

2012-01-10 Thread Michael Doub
I have a list of RGB colors that represent different color samples. I need to create a function that will return the closest perceived RGB entry in the list when supplied a single RGB value. Is anyone aware of a library or some sample code that would help with this task? From searching I

Re: Find nearest color in an RGB list

2012-01-10 Thread Nonsanity
Both look like good suggestions for getting the closest color a human would think is a match, but both involve converting Livecode's native RGB to another format. I may be wrong, but I don't think those conversions are available built-in. I'm sure functions have been written to do this many times,

Re: Find nearest color in an RGB list

2012-01-10 Thread Michael Doub
This works like a charm! Thanks, Mike On 2012-01-10, at 3:03 PM, Nonsanity wrote: Both look like good suggestions for getting the closest color a human would think is a match, but both involve converting Livecode's native RGB to another format. I may be wrong, but I don't think those