pigmentjs
Version:
A zero-dependency colour organisation, creation and manipulation library built for web developers.
12 lines (11 loc) • 652 B
TypeScript
import { RGB, HSL, ValidatedHex, RGBString, HSLString } from "./types";
declare const hex2rgb: (hex: ValidatedHex) => RGB;
declare const rgb2hex: (rgb: RGB) => string;
declare const rgb2string: (rgb: RGB) => RGBString;
declare const rgb2hsl: (rgb: RGB) => HSL;
declare const hsl2rgb: (hsl: HSL) => RGB;
declare const hsl2string: (hsl: HSL) => HSLString;
declare const relativeLuminance: (rgb: RGB) => number;
declare const hsl2array: (hsl: HSL) => [number, number, number];
declare const rgb2array: (rgb: RGB) => [number, number, number];
export { hex2rgb, rgb2hex, rgb2string, rgb2hsl, hsl2string, hsl2rgb, relativeLuminance, hsl2array, rgb2array, };