title: Calculate distance between colors in HSV space
body: <p>I intend to find a distance metric between two colours in HSV space. </p>
  
  <p>Suppose that each colour element has 3 components: hue, saturation, and value. Hue is ranged between 0 to 360, saturation is ranged between 0 to 1, and value is ranged between 0 to 255.</p>
  
  <p>Also hue has a circular property, for example, 359 in hue is closer to 0 in hue value than 10 in hue. </p>
  
  <p>Can anyone provide a good metric to calculate the distance between 2 colour element in HSV space here?</p>