Skip to content

npm version and rgb render #83

Description

@qinchangbiao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions