color: Add color model conversions (#15940)

This commit is contained in:
Bas Timmer
2017-05-04 18:08:20 -07:00
committed by Mohamed Hegazy
parent 5eb4882512
commit 5f27bc2094
+7
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;