color: private rgba, hsla

This commit is contained in:
Joao Moreno
2017-08-08 17:07:16 +02:00
parent de78bd66a6
commit 85d2350db1
18 changed files with 205 additions and 199 deletions

View File

@@ -1031,7 +1031,7 @@ export class Color {
if (!alpha) {
alpha = 1;
}
const color = CommonColor.fromHSLA(new HSLA(hue, saturation, luminosity, alpha)).rgba;
const color = new CommonColor(new HSLA(hue, saturation, luminosity, alpha)).rgba;
return new Color(color.r, color.g, color.b, color.a / 255);
}