lib-colors
Version:
Simple node.js library for work with colors
20 lines (19 loc) • 544 B
TypeScript
import { CMYK } from '../cmyk/cmyk.class';
import { RGB } from '../rgb/rgb.class';
import type { ILAB } from './lab.interface';
export declare class LAB {
private color;
readonly max: ILAB;
get l(): number;
set l(value: number);
get a(): number;
set a(value: number);
get b(): number;
set b(value: number);
get alpha(): number | undefined;
set alpha(value: number | undefined);
constructor(l: number, a: number, b: number, alpha?: number);
toString(): string;
cmyk(): CMYK;
rgb(): RGB;
}