UNPKG

color-interfaces

Version:
12 lines (11 loc) 626 B
import { RGB } from './ColorInterface'; import Color from './Color'; declare type ParseFromMatch = (match: RegExpMatchArray, color: Color) => Color; export declare const cssParsers: Map<RegExp, ParseFromMatch>; export declare const parseCSSColor: (input: string, color?: Color) => Color; export declare const clamp: (val: number, min: number, max: number) => number; export declare const mixRgbColors: (rgb1: RGB, rgb2: RGB, m: number) => RGB; export declare const toPercent: (value: number) => string; export declare const hueToRgb: (hue: number) => number[]; export declare const toTwoHex: (n: number) => string; export {};