Initial Commit

This commit is contained in:
2026-01-15 21:52:12 +01:00
committed by erik
parent 3ed42cdeb6
commit 5a70f775f1
6702 changed files with 1389544 additions and 0 deletions

42
node_modules/color-space/yccbccrc.js generated vendored Normal file
View File

@@ -0,0 +1,42 @@
/**
* YcCbcCrc is ITU-R BT.2020
*
* @module color-space/yccbccrc
*/
import rgb from './rgb.js';
import ypbpr from './ypbpr.js';
var yccbccrc = {
name: 'yccbccrc',
min: [0, -0.5, -0.5],
max: [1, 0.5, 0.5],
channel: ['Yc', 'Cbc', 'Crc'],
alias: ['YcCbcCrc']
};
/**
* YcCbcCrc to RGB
*
* @param {Array<number>} yccbccrc RGB values
*
* @return {Array<number>} YcCbcCrc values
*/
yccbccrc.rgb = function (yccbccrc) {
return ypbpr.rgb(yccbccrc, 0.0593, 0.2627);
};
/**
* RGB to YcCbcCrc
*
* @param {Array<number>} arr YcCbcCrc values
*
* @return {Array<number>} RGB values
*/
rgb.yccbccrc = function (arr) {
return rgb.ypbpr(arr, 0.0593, 0.2627);
};
export default (yccbccrc);