diginext-utils
Version:
README.md
26 lines (25 loc) • 1.04 kB
TypeScript
export declare const random: (hex?: boolean) => string;
export declare const pSBC: (p: any, c0: any, c1?: any, l?: any) => string | null;
export declare const hexToRgb: (hex: string) => {
r: number;
g: number;
b: number;
} | null;
export declare const hexDarken: (hex: string, amount: number) => string | null;
export declare const hexLighten: (hex: string, amount: number) => string | null;
export declare const RGBToHex: (rgb: string | any) => string | null;
export declare const hexToVBColor: (rrggbb: string) => number;
declare const color: {
random: (hex?: boolean) => string;
pSBC: (p: any, c0: any, c1?: any, l?: any) => string | null;
hexToRgb: (hex: string) => {
r: number;
g: number;
b: number;
} | null;
hexDarken: (hex: string, amount: number) => string | null;
hexLighten: (hex: string, amount: number) => string | null;
RGBToHex: (rgb: string | any) => string | null;
hexToVBColor: (rrggbb: string) => number;
};
export default color;