Change the wrapping of hue to use mod()