color: Add color model conversions (#15940)

This commit is contained in:
Bas Timmer 2017-05-05 03:08:20 +02:00 committed by Mohamed Hegazy
parent 5eb4882512
commit 5f27bc2094

View File

@ -67,6 +67,13 @@ declare namespace Color {
hex(color: string): Color;
hex(): string;
rgb(): Color;
hsl(): Color;
hsv(): Color;
hwb(): Color;
hcg(): Color;
cmyk(): Color;
xyz(): Color;
lab(): Color;
rgbNumber(): number;
luminosity(): number;
contrast(color: Color): number;