From cd1ac3817d138709a230e084f5b7f2c6b92e801f Mon Sep 17 00:00:00 2001 From: akshay1992kalbhor Date: Tue, 15 Jun 2021 12:57:20 +0530 Subject: [PATCH] Fix color swapping to allow swapping of colors with opacity less than 100% (#212) --- client/web/src/response-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/web/src/response-handler.ts b/client/web/src/response-handler.ts index 38284a6f7..5f842644a 100644 --- a/client/web/src/response-handler.ts +++ b/client/web/src/response-handler.ts @@ -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 {