make Ox.rgb always return integers
This commit is contained in:
parent
fa84921333
commit
d29bc5569b
4 changed files with 9 additions and 25 deletions
|
|
@ -97,7 +97,7 @@ Ox.rgb = function(hsl) {
|
|||
});
|
||||
}
|
||||
return rgb.map(function(value) {
|
||||
return value * 255;
|
||||
return Math.round(value * 255);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue