Skip to content

Commit

Permalink
Update colorConstants.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian authored Aug 16, 2024
1 parent f1a7fd6 commit 0a5abe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/converters/colorConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a5abe0

Please sign in to comment.