bfd6a3470282a156af30b2b6c1f3bfde38357267b9a87093a261f25bfeaf4d79a8ca82fffbf859a70dd0e674c414bcddfa3e14c49a8ca7eb0586eddc8997df 1.1 KB

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