"Distance" between colours in PHP

Posted by Phil on Stack Overflow See other posts from Stack Overflow or by Phil
Published on 2009-10-27T21:39:55Z Indexed on 2010/04/04 18:13 UTC
Read the original article Hit count: 130

Filed under:
|

I'm looking for a function that can accurately represent the distance between two colours as a number or something.

For example I am looking to have an array of HEX values or RGB arrays and I want to find the most similar colour in the array for a given colour

eg. I pass a function a RGB value and the 'closest' colour in the array is returned

© Stack Overflow or respective owner

Related posts about php

Related posts about color