UNPKG

lib-colors

Version:

Simple node.js library for work with colors

26 lines (25 loc) 705 B
import { CMYK } from '../cmyk/cmyk.class'; import { Gray } from '../gray/gray.class'; import { HSL } from '../hsl/hsl.class'; import { LAB } from '../lab/lab.class'; import type { IRGB } from './rgb.interface'; export declare class RGB { private color; readonly max: IRGB; get r(): number; set r(value: number); get g(): number; set g(value: number); get b(): number; set b(value: number); get a(): number | undefined; set a(value: number | undefined); constructor(r?: number, g?: number, b?: number, a?: number); toString(): string; fromHex(hex: string): void; toHex(): string; cmyk(): CMYK; gray(): Gray; hsl(): HSL; lab(): LAB; }