original_docstring: 
      Calculate distance between two RGB colors. See discussion:
  
      http://stackoverflow.com/questions/8863810/python-find-similar-colors-best-way
  
      - for basic / fast calculations, you can use dE76 but beware of its problems
      - for graphics arts use we recommend dE94 and perhaps dE-CMC 2:1
      - for textiles use dE-CMC
      
docstring: Calculate distance between two RGB colors.
  
  for basic / fast calculations, you can use dE76 but beware of its problems
  for graphics arts use we recommend dE94 and perhaps dE-CMC 2:1
  for textiles use dE-CMC
docstring_tokens: Calculate distance between two RGB colors . for basic / fast calculations you can use dE76 but beware of its problems for graphics arts use we recommend dE94 and perhaps dE - CMC 2 : 1 for textiles use dE - CMC
code: def color_diff(rgb1, rgb2):
      """
      Calculate distance between two RGB colors. See discussion:
  
      http://stackoverflow.com/questions/8863810/python-find-similar-colors-best-way
  
      - for basic / fast calculations, you can use dE76 but beware of its problems
      - for graphics arts use we recommend dE94 and perhaps dE-CMC 2:1
      - for textiles use dE-CMC
      """
      rgb1 = np.array(rgb1, dtype="float64").reshape(1, 1, 3) / 255.0
      rgb2 = np.array(rgb2, dtype="float64").reshape(1, 1, 3) / 255.0
      lab1 = rgb2lab(rgb1)
      lab2 = rgb2lab(rgb2)
      return deltaE_cmc(lab1, lab2, kL=2, kC=1)[0, 0]
code_tokens: def color_diff ( rgb1 , rgb2 ) : rgb1 = np . array ( rgb1 , dtype = "float64" ) . reshape ( 1 , 1 , 3 ) / 255.0 rgb2 = np . array ( rgb2 , dtype = "float64" ) . reshape ( 1 , 1 , 3 ) / 255.0 lab1 = rgb2lab ( rgb1 ) lab2 = rgb2lab ( rgb2 ) return deltaE_cmc ( lab1 , lab2 , kL = 2 , kC = 1 ) [ 0 , 0 ]
short_docstring: Calculate distance between two RGB colors.
short_docstring_tokens: Calculate distance between two RGB colors .
comment: """
      Calculate distance between two RGB colors. See discussion:
  
      http://stackoverflow.com/questions/8863810/python-find-similar-colors-best-way
  
      - for basic / fast calculations, you can use dE76 but beware of its problems
      - for graphics arts use we recommend dE94 and perhaps dE-CMC 2:1
      - for textiles use dE-CMC
      """