box2d.ts icon indicating copy to clipboard operation
box2d.ts copied to clipboard

npm version and rgb render

Open qinchangbiao opened this issue 2 years ago • 0 comments

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

qinchangbiao avatar Dec 04 '22 12:12 qinchangbiao