1 | import { RGBColor, RGBAColor, HSBColor, HSBAColor, HSLColor, HSLAColor } from './color-types';
|
2 | export declare function rgbString(color: RGBColor | RGBAColor): string;
|
3 | export declare const rgbaString: typeof rgbString;
|
4 | export declare function rgbToHex({ red, green, blue }: RGBColor): string;
|
5 | export declare function hsbToHex(color: HSBColor): string;
|
6 | export declare function hsbToRgb(color: HSBColor): RGBColor;
|
7 | export declare function hsbToRgb(color: HSBAColor): RGBAColor;
|
8 | export declare function hslToRgb(color: HSLColor): RGBColor;
|
9 | export declare function hslToRgb(color: HSLAColor): RGBAColor;
|
10 | export declare function rgbToHsb(color: RGBColor): HSBColor;
|
11 | export declare function rgbToHsl(color: RGBColor): HSLAColor;
|
12 | export declare function hexToRgb(color: string): {
|
13 | red: number;
|
14 | green: number;
|
15 | blue: number;
|
16 | };
|
17 | export declare enum ColorType {
|
18 | Hex = "hex",
|
19 | Rgb = "rgb",
|
20 | Rgba = "rgba",
|
21 | Hsl = "hsl",
|
22 | Hsla = "hsla",
|
23 | Default = "default"
|
24 | }
|
25 | export declare function hslToString(hslColor: HSLAColor | string): string;
|
26 | export declare function colorToHsla(color: string): HSLAColor;
|