DistColorFun function

Creates a color distance function