@daeinc/color
Color utilities. Mostly wrapper functions on existing packages for convenience.
npm i @daeinc/color
Functions
export declare function hsv2rgb(val: number): number[];
export declare function hsv2rgb(arr: number[]): number[];
export declare function hsv2rgb(h: number, s: number, v: number): number[];
export declare function hsv2rgb(
h: number,
s: number,
v: number,
a: number
): number[];
export declare const hsb2rgb: typeof hsv2rgb;
export declare function rgb2hsv(arr: number[]): number[];
export declare function rgb2hsv(r: number, g: number, b: number): number[];
export declare function rgb2hsv(
r: number,
g: number,
b: number,
a: number
): number[];
export declare function hex2rgb(hex: string): number[];
To dos
- add
rgb2hsl
and hsl2rgb
hex2hsv
- try
License
MIT