UNPKG

2.17 kBTypeScriptView Raw
1import type { IColor, IHsl, IHsla, IRangeColor, IRgb, IRgba } from "../Core/Interfaces/Colors";
2import type { HslAnimation } from "../Options/Classes/HslAnimation";
3import type { IColorManager } from "../Core/Interfaces/IColorManager";
4import type { IOptionsColor } from "../Options/Interfaces/IOptionsColor";
5import type { IParticle } from "../Core/Interfaces/IParticle";
6import type { IParticleHslAnimation } from "../Core/Interfaces/IParticleHslAnimation";
7export declare function addColorManager(manager: IColorManager): void;
8export declare function rangeColorToRgb(input?: string | IRangeColor, index?: number, useIndex?: boolean): IRgb | undefined;
9export declare function colorToRgb(input?: string | IColor, index?: number, useIndex?: boolean): IRgb | undefined;
10export declare function colorToHsl(color: string | IColor | undefined, index?: number, useIndex?: boolean): IHsl | undefined;
11export declare function rangeColorToHsl(color: string | IRangeColor | undefined, index?: number, useIndex?: boolean): IHsl | undefined;
12export declare function rgbToHsl(color: IRgb): IHsl;
13export declare function stringToAlpha(input: string): number | undefined;
14export declare function stringToRgb(input: string): IRgb | undefined;
15export declare function hslToRgb(hsl: IHsl): IRgb;
16export declare function hslaToRgba(hsla: IHsla): IRgba;
17export declare function getRandomRgbColor(min?: number): IRgb;
18export declare function getStyleFromRgb(color: IRgb, opacity?: number): string;
19export declare function getStyleFromHsl(color: IHsl, opacity?: number): string;
20export declare function colorMix(color1: IRgb | IHsl, color2: IRgb | IHsl, size1: number, size2: number): IRgb;
21export declare function getLinkColor(p1: IParticle, p2?: IParticle, linkColor?: string | IRgb): IRgb | undefined;
22export declare function getLinkRandomColor(optColor: string | IOptionsColor, blink: boolean, consent: boolean): IRgb | string | undefined;
23export declare function getHslFromAnimation(animation?: IParticleHslAnimation): IHsl | undefined;
24export declare function getHslAnimationFromHsl(hsl: IHsl, animationOptions: HslAnimation | undefined, reduceFactor: number): IParticleHslAnimation;