Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm version and rgb render #83

Open
qinchangbiao opened this issue Dec 4, 2022 · 0 comments
Open

npm version and rgb render #83

qinchangbiao opened this issue Dec 4, 2022 · 0 comments

Comments

@qinchangbiao
Copy link

qinchangbiao commented Dec 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant