1 Ext.data.JsonP.Ext_draw_Color({
3 "name": "Ext.draw.Color",
4 "doc": "<p>Represents an RGB color and provides helper functions get\ncolor components in HSL color space.</p>\n",
9 "alternateClassNames": [
20 "name": "lightnessFactor",
21 "member": "Ext.draw.Color",
23 "doc": "<p>The default factor to compute the lighter or darker color. Defaults to 0.2.</p>\n",
25 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
27 "html_filename": "Color2.html",
28 "href": "Color2.html#Ext-draw-Color-cfg-lightnessFactor"
35 "member": "Ext.draw.Color",
41 "doc": "<p>Red component (0..255)</p>\n",
47 "doc": "<p>Green component (0..255)</p>\n",
53 "doc": "<p>Blue component (0..255)</p>\n",
63 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
65 "html_filename": "Color2.html",
66 "href": "Color2.html#Ext-draw-Color-method-constructor",
72 "member": "Ext.draw.Color",
73 "doc": "<p>Create a new color based on the specified HSL values.</p>\n",
78 "doc": "<p>Hue component (0..359)</p>\n",
84 "doc": "<p>Saturation component (0..1)</p>\n",
90 "doc": "<p>Lightness component (0..1)</p>\n",
96 "doc": "<p>Ext.draw.Color</p>\n"
100 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
102 "html_filename": "Color2.html",
103 "href": "Color2.html#Ext-draw-Color-method-fromHSL",
104 "shortDoc": "<p>Create a new color based on the specified HSL values.</p>\n"
108 "name": "fromString",
109 "member": "Ext.draw.Color",
110 "doc": "<p>Parse the string and create a new color.</p>\n\n<p>Supported formats: '#rrggbb', '#rgb', and 'rgb(r,g,b)'.</p>\n\n<p>If the string is not recognized, an undefined will be returned instead.</p>\n",
115 "doc": "<p>Color in string.</p>\n",
121 "doc": "<p>Ext.draw.Color</p>\n"
125 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
127 "html_filename": "Color2.html",
128 "href": "Color2.html#Ext-draw-Color-method-fromString",
129 "shortDoc": "Parse the string and create a new color.\n\nSupported formats: '#rrggbb', '#rgb', and 'rgb(r,g,b)'.\n\nIf the string is n..."
134 "member": "Ext.draw.Color",
135 "doc": "<p>Get the blue component of the color, in the range 0..255.</p>\n",
145 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
147 "html_filename": "Color2.html",
148 "href": "Color2.html#Ext-draw-Color-method-getBlue",
149 "shortDoc": "<p>Get the blue component of the color, in the range 0..255.</p>\n"
154 "member": "Ext.draw.Color",
155 "doc": "<p>Return a new color that is darker than this color.</p>\n",
160 "doc": "<p>Darker factor (0..1), default to 0.2</p>\n",
166 "doc": "<p>Ext.draw.Color</p>\n"
170 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
172 "html_filename": "Color2.html",
173 "href": "Color2.html#Ext-draw-Color-method-getDarker",
174 "shortDoc": "<p>Return a new color that is darker than this color.</p>\n"
178 "name": "getGrayscale",
179 "member": "Ext.draw.Color",
180 "doc": "<p>Returns the gray value (0 to 255) of the color.</p>\n\n<p>The gray value is calculated using the formula r<em>0.3 + g</em>0.59 + b*0.11.</p>\n",
190 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
192 "html_filename": "Color2.html",
193 "href": "Color2.html#Ext-draw-Color-method-getGrayscale",
194 "shortDoc": "<p>Returns the gray value (0 to 255) of the color.</p>\n\n<p>The gray value is calculated using the formula r<em>0.3 + g</em>0.59 + b*0.11.</p>\n"
199 "member": "Ext.draw.Color",
200 "doc": "<p>Get the green component of the color, in the range 0..255.</p>\n",
210 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
212 "html_filename": "Color2.html",
213 "href": "Color2.html#Ext-draw-Color-method-getGreen",
214 "shortDoc": "<p>Get the green component of the color, in the range 0..255.</p>\n"
219 "member": "Ext.draw.Color",
220 "doc": "<p>Get the equivalent HSL components of the color.</p>\n",
230 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
232 "html_filename": "Color2.html",
233 "href": "Color2.html#Ext-draw-Color-method-getHSL",
234 "shortDoc": "<p>Get the equivalent HSL components of the color.</p>\n"
238 "name": "getLighter",
239 "member": "Ext.draw.Color",
240 "doc": "<p>Return a new color that is lighter than this color.</p>\n",
245 "doc": "<p>Lighter factor (0..1), default to 0.2</p>\n",
251 "doc": "<p>Ext.draw.Color</p>\n"
255 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
257 "html_filename": "Color2.html",
258 "href": "Color2.html#Ext-draw-Color-method-getLighter",
259 "shortDoc": "<p>Return a new color that is lighter than this color.</p>\n"
264 "member": "Ext.draw.Color",
265 "doc": "<p>Get the RGB values.</p>\n",
275 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
277 "html_filename": "Color2.html",
278 "href": "Color2.html#Ext-draw-Color-method-getRGB",
279 "shortDoc": "<p>Get the RGB values.</p>\n"
284 "member": "Ext.draw.Color",
285 "doc": "<p>Get the red component of the color, in the range 0..255.</p>\n",
295 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
297 "html_filename": "Color2.html",
298 "href": "Color2.html#Ext-draw-Color-method-getRed",
299 "shortDoc": "<p>Get the red component of the color, in the range 0..255.</p>\n"
304 "member": "Ext.draw.Color",
305 "doc": "<p>Convert a color to hexadecimal format.</p>\n",
308 "type": "String|Array",
310 "doc": "<p>The color value (i.e 'rgb(255, 255, 255)', 'color: #ffffff').\nCan also be an Array, in this case the function handles the first member.</p>\n",
316 "doc": "<p>The color in hexadecimal format.</p>\n"
320 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
322 "html_filename": "Color2.html",
323 "href": "Color2.html#Ext-draw-Color-method-toHex",
324 "shortDoc": "<p>Convert a color to hexadecimal format.</p>\n"
329 "member": "Ext.draw.Color",
330 "doc": "<p>Return the color in the hex format, i.e. '#rrggbb'.</p>\n",
340 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
342 "html_filename": "Color2.html",
343 "href": "Color2.html#Ext-draw-Color-method-toString",
344 "shortDoc": "<p>Return the color in the hex format, i.e. '#rrggbb'.</p>\n"
353 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Color.js",
355 "html_filename": "Color2.html",
356 "href": "Color2.html#Ext-draw-Color",