forked from 0x2620/oxjs
use base 10 in parseInt, use Math.floor for numbers
This commit is contained in:
parent
79bb322112
commit
8bc8c57373
19 changed files with 44 additions and 45 deletions
|
|
@ -143,7 +143,7 @@ Ox.load.Image = function(options, callback) {
|
|||
rgb = i == 0
|
||||
? Ox.rgb([val, 1, 0.5])
|
||||
: Ox.range(3).map(function() {
|
||||
return parseInt(val * 255);
|
||||
return Math.floor(val * 255);
|
||||
});
|
||||
return rgb.concat(rgba[3]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue