X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Color2.html diff --git a/docs/source/Color2.html b/docs/source/Color2.html index 5bc687ff..5f9e6257 100644 --- a/docs/source/Color2.html +++ b/docs/source/Color2.html @@ -16,10 +16,7 @@
/** - * @class Ext.draw.Color - * @extends Object - * - * Represents an RGB color and provides helper functions get + * Represents an RGB color and provides helper functions get * color components in HSL color space. */ Ext.define('Ext.draw.Color', { @@ -40,7 +37,7 @@ Ext.define('Ext.draw.Color', { lightnessFactor: 0.2, /** - * @constructor + * Creates new Color. * @param {Number} red Red component (0..255) * @param {Number} green Green component (0..255) * @param {Number} blue Blue component (0..255) @@ -79,7 +76,7 @@ Ext.define('Ext.draw.Color', { /** * Get the RGB values. - * @return {Array} + * @return {[Number]} */ getRGB: function() { var me = this; @@ -88,7 +85,7 @@ Ext.define('Ext.draw.Color', { /** * Get the equivalent HSL components of the color. - * @return {Array} + * @return {[Number]} */ getHSL: function() { var me = this, @@ -163,9 +160,12 @@ Ext.define('Ext.draw.Color', { /** * Convert a color to hexadecimal format. * - * @param {String|Array} color The color value (i.e 'rgb(255, 255, 255)', 'color: #ffffff'). + * **Note:** This method is both static and instance. + * + * @param {String/[String]} color 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. * @returns {String} The color in hexadecimal format. + * @static */ toHex: function(color) { if (Ext.isArray(color)) { @@ -198,8 +198,11 @@ Ext.define('Ext.draw.Color', { * * If the string is not recognized, an undefined will be returned instead. * + * **Note:** This method is both static and instance. + * * @param {String} str Color in string. * @returns Ext.draw.Color + * @static */ fromString: function(str) { var values, r, g, b, @@ -244,11 +247,14 @@ Ext.define('Ext.draw.Color', { /** * Create a new color based on the specified HSL values. + * + * **Note:** This method is both static and instance. * * @param {Number} h Hue component (0..359) * @param {Number} s Saturation component (0..1) * @param {Number} l Lightness component (0..1) * @returns Ext.draw.Color + * @static */ fromHSL: function(h, s, l) { var C, X, m, i, rgb = [],