From d503243be11b4de0008fbef3d22a1b44ce90fa78 Mon Sep 17 00:00:00 2001 From: SirStendec Date: Thu, 14 Dec 2023 18:53:05 -0500 Subject: [PATCH] 4.62.1 * Fixed: Incorrect handling of colors with alpha transparency when processing colors. --- package.json | 2 +- src/utilities/color.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 54dc3975..3958986f 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.62.0", + "version": "4.62.1", "description": "FrankerFaceZ is a Twitch enhancement suite.", "private": true, "license": "Apache-2.0", diff --git a/src/utilities/color.ts b/src/utilities/color.ts index 1b70da53..4f5490e1 100644 --- a/src/utilities/color.ts +++ b/src/utilities/color.ts @@ -88,7 +88,7 @@ class RGBAColor implements BaseColor { if ( data?.data?.length !== 4 ) return null; - return new RGBAColor(data.data[0], data.data[1], data.data[2], data.data[3]); + return new RGBAColor(data.data[0], data.data[1], data.data[2], data.data[3] / 255); } static fromCSS(input: string) {