UNPKG

@bjornlu/colorblind

Version:
11 lines (10 loc) 652 B
import { LMS, RGB } from './types'; export declare function multiplyMatrix3x3And3x1(a: Array<number>, b: Array<number>): number[]; export declare function multiplyMatrix3x1And3x1(a: Array<number>, b: Array<number>): number[]; export declare function convertRgbToLms(rgb: RGB): LMS; export declare function convertLmsToRgb(lms: LMS): RGB; export declare function convertRgbToMatrix(rgb: RGB): number[]; export declare function convertLmsToMatrix(lms: LMS): number[]; export declare function convertMatrixToRgb(m: Array<number>): RGB; export declare function convertMatrixToLms(m: Array<number>): LMS; export declare function sanitizeRgb(rgb: RGB): RGB;