提交 adecf6e1 编写于 作者: J Joao Moreno

Merge remote-tracking branch 'origin/master'

......@@ -360,6 +360,9 @@ export class Color {
public toString(): string {
const rgba = this.rgba;
if (rgba.a === 255) {
return this.toRGBHex();
}
return `rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, ${+(rgba.a / 255).toFixed(2)})`;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册