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