Merge pull request #2201 from gartdan/patch-1

Update jquery.color.d.ts
This commit is contained in:
Masahiro Wakame
2014-05-20 16:44:11 +09:00
+35
View File
@@ -16,6 +16,11 @@ interface JQueryColor {
*/
red(val: number): JQueryColor;
/**
* Returns a copy of the color object with the red set to val.
*/
red(val: string): JQueryColor;
/**
* Returns the green component of the color (integer from 0 - 255).
*/
@@ -26,6 +31,11 @@ interface JQueryColor {
*/
green(val: number): JQueryColor;
/**
* Returns a copy of the color object with the green set to val.
*/
green(val: string): JQueryColor;
/**
* Returns the blue component of the color (integer from 0 - 255).
*/
@@ -35,6 +45,11 @@ interface JQueryColor {
* Returns a copy of the color object with the blue set to val.
*/
blue(val: number): JQueryColor;
/**
* Returns a copy of the color object with the blue set to val.
*/
blue(val: string): JQueryColor;
/**
* Returns the alpha value of this color (float from 0.0 - 1.0).
@@ -46,6 +61,11 @@ interface JQueryColor {
*/
alpha(val: number): JQueryColor;
/**
* Returns a copy of the color object with the alpha set to val.
*/
alpha(val: string): JQueryColor;
/**
* Returns the hue component of the color (integer from 0 - 359).
*/
@@ -56,6 +76,11 @@ interface JQueryColor {
*/
hue(val: number): JQueryColor;
/**
* Returns a copy of the color object with the hue set to val.
*/
hue(val: string): JQueryColor;
/**
* Returns the saturation component of the color (float from 0.0 - 1.0).
*/
@@ -66,6 +91,11 @@ interface JQueryColor {
*/
saturation(val: number): JQueryColor;
/**
* Returns a copy of the color object with the saturation set to val.
*/
saturation(val: string): JQueryColor;
/**
* Returns the lightness component of the color (float from 0.0 - 1.0).
*/
@@ -76,6 +106,11 @@ interface JQueryColor {
*/
lightness(val: number): JQueryColor;
/**
* Returns a copy of the color object with the lightness set to val.
*/
lightness(val: string): JQueryColor;
/**
* Returns a rgba "tuple" [ red, green, blue, alpha ].
*/