astro-ghostcms/.pnpm-store/v3/files/8a/99357d71d9eadf1812c7e00dce2...

32 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
import { RGBColor, HSVColor } from './ColorTypes';
import { GetColorTypeHex } from './interfaces';
/**
* Takes an `RGBColor` and converts it to `HSVColor`
*/
export declare function RGBToHSV(color: RGBColor, is255?: boolean): HSVColor;
/**
* Takes an `HSVColor` and converts it to `RGBColor`
*/
export declare function HSVToRGB(hsv: HSVColor, is100?: boolean): RGBColor;
/**
* Takes an `StringColor` and converts it to `RGBColor`,
* If input string is invalid `null` will be returned.
*/
export declare function StringToRGB(input: string, return255?: boolean, alpha255?: boolean): RGBColor;
/**
* Takes an `StringColor` and converts it to `HSVColor`,
* If input string is invalid `null` will be returned.
*/
export declare function StringToHVS(input: string, return255?: boolean, alpha255?: boolean): HSVColor;
/**
* Takes an `HSVColor` and converts it to `String` (HEX Format)
*/
export declare function HSVToHEX(hsv: HSVColor, options?: {
type?: GetColorTypeHex;
isLong?: boolean;
}): string;
/**
* Takes an `RGBColor` and converts it to `String` (HEX Format)
*/
export declare function RGBToHEX(color: RGBColor, type?: GetColorTypeHex): string;