diff --git a/src/color/Color.js b/src/color/Color.js index 3629a7f1..e9053b5d 100644 --- a/src/color/Color.js +++ b/src/color/Color.js @@ -98,7 +98,7 @@ var Color = this.Color = Base.extend(new function() { }, 'hsb-rgb': function(color) { - var h = color._hue / 60, // Scale to 0..6 + var h = (color._hue / 60) % 6, // Scale to 0..6 s = color._saturation, b = color._brightness, i = Math.floor(h), // 0..5