TinyColor
TinyColor copied to clipboard
Enable wrapping around of hue values given in degrees
Have a look: Test example. I changed function bound01() to check for a max value of 360 and if it is, then allow n to keep going around the color wheel and return the value where it ends up.
This is certainly something that tinycolor needs to be accurate. I have confirmed by experimentation that css wraps out-of-range values.