UNPKG

ngx-input-color

Version:

Angular color input component and color picker (with HSL, HSV, RGB, CMYK, HEX, alpha, eye-dropper, etc)

52 lines (51 loc) 1.31 kB
/** * A representation of additive color mixing. * Projection of primary color lights on a white screen shows secondary * colors where two overlap; the combination of all three of red, green, * and blue in equal intensities makes white. */ export declare class RGB { r: number; g: number; b: number; } export declare class RGBA extends RGB { a: number; } /** * The HSL model describes colors in terms of hue, saturation, * and lightness (also called luminance). * @link https://en.wikibooks.org/wiki/Color_Models:_RGB,_HSV,_HSL#HSL */ export declare class HSL { h: number; s: number; l: number; } export declare class HSLA extends HSL { a: number; } /** * The HSV, or HSB, model describes colors in terms of * hue, saturation, and value (brightness). * @link https://en.wikibooks.org/wiki/Color_Models:_RGB,_HSV,_HSL#HSV */ export declare class HSV { h: number; s: number; v: number; } export declare class HSVA extends HSV { a: number; } /** * The CMYK color model is a subtractive color model used in the printing process. * It described four ink palettes: Cyan, Magenta, Yellow, and Black. * @link https://en.wikipedia.org/wiki/CMYK_color_model */ export declare class CMYK { c: number; m: number; y: number; k: number; }