fix hwbtorgb missing alpha

This commit is contained in:
Ryan Huber
2019-07-29 10:53:29 -04:00
committed by Mikael Sand
parent 645b5220d4
commit 952d02709d
+1 -1
View File
@@ -387,7 +387,7 @@ function rgbFromHwbString(string) {
const w = clamp(parseFloat(match[2]), 0, 100);
const b = clamp(parseFloat(match[3]), 0, 100);
const a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
return hwbToRgb([h, w, b, a]);
return [...hwbToRgb([h, w, b, a]), a];
}
function colorFromString(string) {