1 | import { Extrapolation } from './interpolation';
|
2 | import type { SharedValue } from './commonTypes';
|
3 |
|
4 | export declare const Extrapolate: typeof Extrapolation;
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export type InterpolationOptions = {
|
13 | gamma?: number;
|
14 | useCorrectedHSVInterpolation?: boolean;
|
15 | };
|
16 | export interface InterpolateRGB {
|
17 | r: number[];
|
18 | g: number[];
|
19 | b: number[];
|
20 | a: number[];
|
21 | }
|
22 | export interface InterpolateHSV {
|
23 | h: number[];
|
24 | s: number[];
|
25 | v: number[];
|
26 | a: number[];
|
27 | }
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare function interpolateColor(value: number, inputRange: readonly number[], outputRange: readonly string[], colorSpace?: 'RGB' | 'HSV', options?: InterpolationOptions): string;
|
47 | export declare function interpolateColor(value: number, inputRange: readonly number[], outputRange: readonly number[], colorSpace?: 'RGB' | 'HSV', options?: InterpolationOptions): number;
|
48 | export declare enum ColorSpace {
|
49 | RGB = 0,
|
50 | HSV = 1
|
51 | }
|
52 | export interface InterpolateConfig {
|
53 | inputRange: readonly number[];
|
54 | outputRange: readonly (string | number)[];
|
55 | colorSpace: ColorSpace;
|
56 | cache: SharedValue<InterpolateRGB | InterpolateHSV | null>;
|
57 | options: InterpolationOptions;
|
58 | }
|
59 | export declare function useInterpolateConfig(inputRange: readonly number[], outputRange: readonly (string | number)[], colorSpace?: ColorSpace, options?: InterpolationOptions): SharedValue<InterpolateConfig>;
|
60 |
|
\ | No newline at end of file |