mirror of
https://github.com/boxgaming/qbjs.git
synced 2024-09-19 20:14:58 +00:00
updated internal color method to convert simple color numbers to integer
This commit is contained in:
parent
5c8193a8d9
commit
ada45e3506
1 changed files with 1 additions and 1 deletions
2
qb.js
2
qb.js
|
@ -499,7 +499,7 @@ var QB = new function() {
|
|||
return c;
|
||||
}
|
||||
else if (!isNaN(c) && c >= 0 && c <= 255) {
|
||||
return _colormap[c];
|
||||
return _colormap[parseInt(c)];
|
||||
}
|
||||
return QB.func__RGB(0,0,0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue