Added minDistance to random color.