Home | History | Annotate | Download | only in common

Lines Matching defs:Format

32  * @param {string=} format
36 WebInspector.Color = function(rgba, format, originalText)
40 this._format = format || null;
64 var format;
66 format = WebInspector.Color.Format.ShortHEX;
69 format = WebInspector.Color.Format.HEX;
73 return new WebInspector.Color([r / 255, g / 255, b / 255, 1], format, text);
81 return new WebInspector.Color(rgba, WebInspector.Color.Format.RGB, text);
89 color._format = WebInspector.Color.Format.Nickname;
102 return new WebInspector.Color(rgba, WebInspector.Color.Format.HSL, text);
118 return new WebInspector.Color(rgba, WebInspector.Color.Format.RGBA, text);
128 return new WebInspector.Color(rgba, WebInspector.Color.Format.HSLA, text);
161 return new WebInspector.Color(WebInspector.Color._hsl2rgb(hsla), WebInspector.Color.Format.HSLA);
168 format: function()
252 toString: function(format)
254 if (!format)
255 format = this._format;
285 switch (format) {
286 case WebInspector.Color.Format.Original:
288 case WebInspector.Color.Format.RGB:
292 case WebInspector.Color.Format.RGBA:
294 case WebInspector.Color.Format.HSL:
299 case WebInspector.Color.Format.HSLA:
302 case WebInspector.Color.Format.HEX:
306 case WebInspector.Color.Format.ShortHEX:
310 case WebInspector.Color.Format.Nickname:
633 WebInspector.Color.Format = {