Use modulo again in hsb conversion.

This commit is contained in:
Jürg Lehni 2011-06-02 15:33:46 +01:00
parent 016476d1dc
commit a1cbd53e23

View file

@ -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