Evercoder/d3-color-difference

Implement nearest() function

Open

#1 opened on Apr 19, 2018

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (9 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (35 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide