materialifier
Version:
Material design palette generator
11 lines (10 loc) • 657 B
TypeScript
import { LABColor, LCHColor, RGBColor } from './colors';
declare function hex2rgb(hexColor: string): RGBColor;
declare function rgb2hex(rgbColor: RGBColor): string;
declare function lab2hue(a: number, b: number): number;
declare function lab2lch(labColor: LABColor): LCHColor;
declare function rgb2lab(rgbColor: RGBColor): LABColor;
declare function hex2lab(hexColor: string): LABColor;
declare function lch2rgb(lchColor: LCHColor): RGBColor;
declare function throwIfNotInRange(number: number, maxValue: number, label?: string, minValue?: number): true;
export { lab2hue, rgb2lab, lab2lch, lch2rgb, hex2lab, hex2rgb, rgb2hex, throwIfNotInRange };