1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | import type { StyleProps } from './commonTypes';
|
7 | interface HSV {
|
8 | h: number;
|
9 | s: number;
|
10 | v: number;
|
11 | }
|
12 | export declare const ColorProperties: string[];
|
13 | export declare function normalizeColor(color: unknown): number | null;
|
14 | export declare const opacity: (c: number) => number;
|
15 | export declare const red: (c: number) => number;
|
16 | export declare const green: (c: number) => number;
|
17 | export declare const blue: (c: number) => number;
|
18 | export declare const rgbaColor: (r: number, g: number, b: number, alpha?: number) => number | string;
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function RGBtoHSV(r: number, g: number, b: number): HSV;
|
26 | export declare const hsvToColor: (h: number, s: number, v: number, a: number) => number | string;
|
27 | export declare function isColor(value: unknown): boolean;
|
28 | export declare function processColor(color: unknown): number | null | undefined;
|
29 | export declare function processColorsInProps(props: StyleProps): void;
|
30 | export type ParsedColorArray = [number, number, number, number];
|
31 | export declare function convertToRGBA(color: unknown): ParsedColorArray;
|
32 | export declare function rgbaArrayToRGBAColor(RGBA: ParsedColorArray): string;
|
33 | export declare function toLinearSpace(RGBA: ParsedColorArray, gamma?: number): ParsedColorArray;
|
34 | export declare function toGammaSpace(RGBA: ParsedColorArray, gamma?: number): ParsedColorArray;
|
35 | export {};
|
36 |
|
\ | No newline at end of file |