module Term::ANSIColor::RGBColorMetrics::CIEXYZ

def self.distance(rgb1, rgb2)

def self.distance(rgb1, rgb2)
  xyz1 = CIEXYZTriple.from_rgb_triple(rgb1)
  xyz2 = CIEXYZTriple.from_rgb_triple(rgb2)
  xyz1.weighted_euclidean_distance_to xyz2
end