mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Use modulo again in hsb conversion.
This commit is contained in:
parent
016476d1dc
commit
a1cbd53e23
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ var Color = this.Color = Base.extend(new function() {
|
||||||
},
|
},
|
||||||
|
|
||||||
'hsb-rgb': function(color) {
|
'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,
|
s = color._saturation,
|
||||||
b = color._brightness,
|
b = color._brightness,
|
||||||
i = Math.floor(h), // 0..5
|
i = Math.floor(h), // 0..5
|
||||||
|
|
Loading…
Reference in a new issue