1 | import { GradientObject } from '../graphic/Gradient';
|
2 | export declare function parse(colorStr: string, rgbaArr?: number[]): number[];
|
3 | export declare function lift(color: string, level: number): string;
|
4 | export declare function toHex(color: string): string;
|
5 | export declare function fastLerp(normalizedValue: number, colors: number[][], out?: number[]): number[];
|
6 | export declare const fastMapToColor: typeof fastLerp;
|
7 | declare type LerpFullOutput = {
|
8 | color: string;
|
9 | leftIndex: number;
|
10 | rightIndex: number;
|
11 | value: number;
|
12 | };
|
13 | export declare function lerp(normalizedValue: number, colors: string[], fullOutput: boolean): LerpFullOutput;
|
14 | export declare function lerp(normalizedValue: number, colors: string[]): string;
|
15 | export declare const mapToColor: typeof lerp;
|
16 | export declare function modifyHSL(color: string, h?: number, s?: number, l?: number): string;
|
17 | export declare function modifyAlpha(color: string, alpha?: number): string;
|
18 | export declare function stringify(arrColor: number[], type: string): string;
|
19 | export declare function lum(color: string, backgroundLum: number): number;
|
20 | export declare function random(): string;
|
21 | export declare function liftColor(color: GradientObject): GradientObject;
|
22 | export declare function liftColor(color: string): string;
|
23 | export {};
|