From 18ca2a035bc9107288e35f11be8dac83c7539503 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 28 Jan 2020 00:25:05 +0200 Subject: [PATCH] fix rgba function, whoops --- src/services/color_convert/color_convert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/color_convert/color_convert.js b/src/services/color_convert/color_convert.js index b546103837..3b6fdcc735 100644 --- a/src/services/color_convert/color_convert.js +++ b/src/services/color_convert/color_convert.js @@ -171,7 +171,7 @@ export const mixrgb = (a, b) => { * @returns {String} CSS rgba() color */ export const rgba2css = function (rgba) { - return `rgba(${Math.floor(rgba.r)}, ${Math.floor(rgba.g)}, ${Math.floor(rgba.b)}, .5)` + return `rgba(${Math.floor(rgba.r)}, ${Math.floor(rgba.g)}, ${Math.floor(rgba.b)}, ${rgba.a})` } /**