allc
Version:
A small typescript package for color conversion.
31 lines • 1.57 kB
TypeScript
/**
* Calculates the X component of CIE 1931 XYZ from linear DCI-P3 "D60 sim".
*
* @param r The red component of linear DCI-P3 "D60 sim", typically in the range [0, 1].
* @param g The green component of linear DCI-P3 "D60 sim", typically in the range [0, 1].
* @param b The blue component of linear DCI-P3 "D60 sim", typically in the range [0, 1].
*
* @returns The X component of CIE 1931 XYZ.
*/
export declare const toCIE1931XYZXFromLinearDCIP3D60: (r: number, g: number, b: number) => number;
/**
* Calculates the Y component of CIE 1931 XYZ from linear DCI-P3 "D60 sim".
*
* @param r The red component of linear DCI-P3 "D60 sim", typically in the range [0, 1].
* @param g The green component of linear DCI-P3 "D60 sim", typically in the range [0, 1].
* @param b The blue component of linear DCI-P3 "D60 sim", typically in the range [0, 1].
*
* @returns The Y component of CIE 1931 XYZ.
*/
export declare const toCIE1931XYZYFromLinearDCIP3D60: (r: number, g: number, b: number) => number;
/**
* Calculates the Z component of CIE 1931 XYZ from linear DCI-P3 "D60 sim".
*
* @param r The red component of linear DCI-P3 "D60 sim", typically in the range [0, 1].
* @param g The green component of linear DCI-P3 "D60 sim", typically in the range [0, 1].
* @param b The blue component of linear DCI-P3 "D60 sim", typically in the range [0, 1].
*
* @returns The Z component of CIE 1931 XYZ.
*/
export declare const toCIE1931XYZZFromLinearDCIP3D60: (r: number, g: number, b: number) => number;
//# sourceMappingURL=dci-p3-d60-to-cie-1931-xyz.d.ts.map