Hues now rollover instead of clamping
Moved some maths to utility functions