1、The npm version is not latest
2、On some platforms it is not possible to render RGB colors as decimals
So I want to release a new version of npm, For compatibility with some platforms,Fix common/b2_draw.ts MakeStyleString method
if (a < 1) {
return rgba(${Math.round(r)},${Math.round(g)},${Math.round(b)},${a});
} else {
return rgb(${Math.round(r)},${Math.round(g)},${Math.round(b)});
}
return rgb string value is integer
1、The npm version is not latest
2、On some platforms it is not possible to render RGB colors as decimals
So I want to release a new version of npm, For compatibility with some platforms,Fix common/b2_draw.ts MakeStyleString method
if (a < 1) {
return
rgba(${Math.round(r)},${Math.round(g)},${Math.round(b)},${a});} else {
return
rgb(${Math.round(r)},${Math.round(g)},${Math.round(b)});}
return rgb string value is integer