make Ox.rgb always return integers

This commit is contained in:
rolux 2012-06-24 17:41:27 +02:00
commit d29bc5569b
4 changed files with 9 additions and 25 deletions

View file

@ -97,7 +97,7 @@ Ox.rgb = function(hsl) {
});
}
return rgb.map(function(value) {
return value * 255;
return Math.round(value * 255);
});
};