transition time based on hsv distance