UNPKG

2.07 kBTypeScriptView Raw
1import type { IColor, IHsl, IHsla, IHsv, IHsva, IParticle, IParticleHslAnimation, IRgb, IRgba } from "../Core/Interfaces";
2import type { HslAnimation } from "../Options/Classes/HslAnimation";
3export declare function colorToRgb(input?: string | IColor, index?: number, useIndex?: boolean): IRgb | undefined;
4export declare function colorToHsl(color: string | IColor | undefined, index?: number, useIndex?: boolean): IHsl | undefined;
5export declare function rgbToHsl(color: IRgb): IHsl;
6export declare function stringToAlpha(input: string): number | undefined;
7export declare function stringToRgb(input: string): IRgb | undefined;
8export declare function hslToRgb(hsl: IHsl): IRgb;
9export declare function hslaToRgba(hsla: IHsla): IRgba;
10export declare function hslToHsv(hsl: IHsl): IHsv;
11export declare function hslaToHsva(hsla: IHsla): IHsva;
12export declare function hsvToHsl(hsv: IHsv): IHsl;
13export declare function hsvaToHsla(hsva: IHsva): IHsla;
14export declare function hsvToRgb(hsv: IHsv): IRgb;
15export declare function hsvaToRgba(hsva: IHsva): IRgba;
16export declare function rgbToHsv(rgb: IRgb): IHsv;
17export declare function rgbaToHsva(rgba: IRgba): IHsva;
18export declare function getRandomRgbColor(min?: number): IRgb;
19export declare function getStyleFromRgb(color: IRgb, opacity?: number): string;
20export declare function getStyleFromHsl(color: IHsl, opacity?: number): string;
21export declare function getStyleFromHsv(color: IHsv, opacity?: number): string;
22export declare function colorMix(color1: IRgb | IHsl, color2: IRgb | IHsl, size1: number, size2: number): IRgb;
23export declare function getLinkColor(p1: IParticle, p2?: IParticle, linkColor?: string | IRgb): IRgb | undefined;
24export declare function getLinkRandomColor(optColor: string | IColor, blink: boolean, consent: boolean): IRgb | string | undefined;
25export declare function getHslFromAnimation(animation?: IParticleHslAnimation): IHsl | undefined;
26export declare function getHslAnimationFromHsl(hsl: IHsl, animationOptions: HslAnimation | undefined, reduceFactor: number): IParticleHslAnimation;