From 0a5abe004ac9c39dc250e2cbf8433a4c47a5c489 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Fri, 16 Aug 2024 09:57:44 +0100 Subject: [PATCH] Update colorConstants.ts --- src/lib/converters/colorConstants.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/converters/colorConstants.ts b/src/lib/converters/colorConstants.ts index bddb8bec..25d158c7 100644 --- a/src/lib/converters/colorConstants.ts +++ b/src/lib/converters/colorConstants.ts @@ -23,10 +23,10 @@ export interface ColorConvertConstants { } function createColorConvertConstants(KR: number, KB: number): ColorConvertConstants { - const KG = 1 - KR - KB // 0.7152 + const KG = 1 - KR - KB - const KRi = 1 - KR // 0.7874 -> 1.5748 - const KBi = 1 - KB // 0.9278 -> 1.8556 + const KRi = 1 - KR + const KBi = 1 - KB const YRange = 219 const CbCrRange = 224