1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-09-20 04:24:45 +00:00

updated internal color method to convert simple color numbers to integer

This commit is contained in:
boxgaming 2022-03-15 10:45:27 -05:00
parent 5c8193a8d9
commit ada45e3506

2
qb.js
View file

@ -499,7 +499,7 @@ var QB = new function() {
return c; return c;
} }
else if (!isNaN(c) && c >= 0 && c <= 255) { else if (!isNaN(c) && c >= 0 && c <= 255) {
return _colormap[c]; return _colormap[parseInt(c)];
} }
return QB.func__RGB(0,0,0); return QB.func__RGB(0,0,0);
} }