d3-color-difference
d3-color-difference copied to clipboard
Implement nearest() function
One use for the color difference formulas is to find the closest color from a set to a given color. A good data structure for this seems to be a v-p tree (Vantage Point Tree), as it allows for much faster queries than the linear approach.