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

This commit is contained in:
akshay1992kalbhor 2021-06-15 12:57:20 +05:30 committed by Keavon Chambers
parent d34f72e198
commit 310db82ab4

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 {