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 GitHub
parent 435b34298d
commit cd1ac3817d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {