Change the algorithm of RotateHue