X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/docs/api/Ext.draw.Color.html diff --git a/docs/api/Ext.draw.Color.html b/docs/api/Ext.draw.Color.html new file mode 100644 index 00000000..f74bebc5 --- /dev/null +++ b/docs/api/Ext.draw.Color.html @@ -0,0 +1,113 @@ +
Represents an RGB color and provides helper functions get +color components in HSL color space.
+
Red component (0..255)
+Green component (0..255)
+Blue component (0..255)
+Create a new color based on the specified HSL values.
+Create a new color based on the specified HSL values.
+Hue component (0..359)
+Saturation component (0..1)
+Lightness component (0..1)
+Ext.draw.Color
+Parse the string and create a new color.
+ +Supported formats: '#rrggbb', '#rgb', and 'rgb(r,g,b)'.
+ +If the string is not recognized, an undefined will be returned instead.
+Color in string.
+Ext.draw.Color
+Get the blue component of the color, in the range 0..255.
+Get the blue component of the color, in the range 0..255.
+Return a new color that is darker than this color.
+Return a new color that is darker than this color.
+Darker factor (0..1), default to 0.2
+Ext.draw.Color
+Returns the gray value (0 to 255) of the color.
+ +The gray value is calculated using the formula r0.3 + g0.59 + b*0.11.
+Returns the gray value (0 to 255) of the color.
+ +The gray value is calculated using the formula r0.3 + g0.59 + b*0.11.
+Get the green component of the color, in the range 0..255.
+Get the green component of the color, in the range 0..255.
+Get the equivalent HSL components of the color.
+Get the equivalent HSL components of the color.
+Return a new color that is lighter than this color.
+Return a new color that is lighter than this color.
+Lighter factor (0..1), default to 0.2
+Ext.draw.Color
+Get the red component of the color, in the range 0..255.
+Get the red component of the color, in the range 0..255.
+Convert a color to hexadecimal format.
+Convert a color to hexadecimal format.
+The color value (i.e 'rgb(255, 255, 255)', 'color: #ffffff'). +Can also be an Array, in this case the function handles the first member.
+The color in hexadecimal format.
+