constructor with knowColor added

This commit is contained in:
Vladimir Enchev
2015-03-05 13:49:16 +02:00
parent 9ff509a626
commit 6cb4dc15d9

1
color/color.d.ts vendored
View File

@ -6,6 +6,7 @@ declare module "color" {
* Represents a color object. Stores all color components (alpha (opacity), red, green, blue) in a [0..255] range. * Represents a color object. Stores all color components (alpha (opacity), red, green, blue) in a [0..255] range.
*/ */
class Color { class Color {
constructor(knownColor: string);
constructor(hex: string); constructor(hex: string);
constructor(argb: number); constructor(argb: number);
constructor(alpha: number, red: number, green: number, blue: number); constructor(alpha: number, red: number, green: number, blue: number);