multicolors-converter
Version:
A very simple tool to convert colors into differents formats
19 lines (18 loc) • 481 B
TypeScript
import { Converter } from "@src/converters/Converter";
export declare class HexConverter extends Converter {
/**
*
* @param hex The hex color to convert to Rgb
*/
static hexToRgb(hex: string): RgbColor | null;
/**
*
* @param hex The hex color to convert to Ral
*/
static hexToRal(hex: string): string | null;
/**
*
* @param hex The hex color to convert to Name
*/
static hexToName(hex: string): string | null;
}