UNPKG

lib-colors

Version:

Simple node.js library for work with colors

16 lines (15 loc) 800 B
import { CMYK } from './cmyk/cmyk.class'; import type { ICMYK } from './cmyk/cmyk.interface'; import { Gray } from './gray/gray.class'; import type { IGray } from './gray/gray.interface'; import { HSL } from './hsl/hsl.class'; import type { IHSL } from './hsl/hsl.interface'; import { RGB } from './rgb/rgb.class'; import type { IRGB } from './rgb/rgb.interface'; export { CMYK, Gray, HSL, RGB }; export type { ICMYK, IGray, IHSL, IRGB }; export declare const cmyk: (c: number, m: number, y: number, k: number, a?: number) => CMYK; export declare const gray: (g: number, a?: number) => Gray; export declare const hex: (hex: string) => RGB; export declare const hsl: (h: number, s: number, l: number, a?: number) => HSL; export declare const rgb: (r: number, g: number, b: number, a?: number) => RGB;