Fix color swapping to allow swapping of colors with opacity less than 100% (#212)

This commit is contained in:
akshay1992kalbhor
2021-06-15 00:27:20 -07:00
committed by GitHub
parent 435b34298d
commit cd1ac3817d
+1 -1
View File
@@ -78,7 +78,7 @@ export interface Color {
alpha: number;
}
function newColor(input: any): Color {
return { red: input.red * 255, green: input.green * 255, blue: input.blue * 255, alpha: input.alpha * 255 };
return { red: input.red * 255, green: input.green * 255, blue: input.blue * 255, alpha: input.alpha };
}
export interface UpdateWorkingColors {