Fixed problem in toHSV() that botched cycling colors.