Searched defs:color (Results 1 - 25 of 659) sorted by path

1234567891011>>

/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
H A DPaintUtils.java55 * @param color
57 public static void setShadowDp(Paint paint, float radiusDp, float dxDp, float dyDp, int color) { argument
61 paint.setShadowLayer(radius, dx, dy, color);
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
H A DAxisValueLabelFormatter.java21 private int color; field in class:AxisValueLabelFormatter
23 public AxisValueLabelFormatter(int color) { argument
24 this.color = color;
28 return color;
31 public void setColor(int color) { argument
32 this.color = color;
H A DXYRegionFormatter.java28 //private int color;
50 public XYRegionFormatter(int color) { argument
52 paint.setColor(color);
55 //this.color = color;
62 public void setColor(int color) { argument
63 paint.setColor(color);
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
H A DMockPaint.java27 int color = 0; field in class:MockPaint
30 public void setColor(int color) { argument
31 this.color = color;
36 return color;
/external/autotest/client/site_tests/graphics_SanAngeles/src/
H A Ddemo.c76 /* Vertex array and color array are enabled for all objects, so their
83 * components per color with GL_UNSIGNED_BYTE datatype and stride 0.
434 int a, color[3]; local
437 color[a] = (int)(ca * baseColor[a] * 255);
438 if (color[a] > 255) color[a] = 255;
440 result->colorArray[i] = (GLubyte)color[0];
441 result->colorArray[i + 1] = (GLubyte)color[1];
442 result->colorArray[i + 2] = (GLubyte)color[2];
505 GLubyte color; local
[all...]
/external/bison/src/
H A Dgraphviz.c110 char const *color = enabled ? ruleno ? "3" : "1" : "5"; local
140 color);
/external/blktrace/btt/
H A Dbtt_plot.py285 def color(idx, style): function in function:generate_output
286 """Returns a color/symbol type based upon the index passed."""
292 color = colors[idx % len(colors)]
298 return '%s%s' % (color, style)
340 ax.plot(dat['x'], dat['y'], color(idx, 'marker'),
345 ax.plot(dat['ax'], dat['ay'], color(idx, 'line'),
/external/blktrace/
H A Drbtree.c225 int color; local
240 color = rb_color(node);
266 goto color;
270 color = rb_color(node);
284 color:
285 if (color == RB_BLACK)
H A Drbtree.h135 static inline void rb_set_color(struct rb_node *rb, int color) argument
137 rb->rb_parent_color = (rb->rb_parent_color & ~1) | color;
/external/chromium-trace/catapult/firefighter/default/tracing/third_party/css-element-queries/test/
H A Dmootools-core-full-nocompat.js3769 el.style.color = 'red';
3770 el.style.color = null;
3771 var doesNotRemoveStyles = el.style.color == 'red';
3773 // check for oldIE, which returns border* shorthand styles in the wrong order (color-width-style instead of width-style-color)
3898 var color = result.match(/rgba?\([\d\s,]+\)/);
3899 if (color) result = result.replace(color[0], color[0].rgbToHex());
3939 backgroundColor: 'rgb(@, @, @)', backgroundSize: '@px', backgroundPosition: '@px @px', color
[all...]
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/
H A Dbitmaptools.cc162 bool PixelsEqual(const unsigned char* pixel, int color, int tolerance) { argument
163 unsigned char pixel2[3] = { color >> 16, color >> 8, color };
199 int color; local
201 if (!(ReadInt(&color) && ReadInt(&tolerance))) {
219 if (!PixelsEqual(pixel, color, tolerance))
/external/chromium-trace/catapult/telemetry/third_party/flot/
H A Djquery.flot.min.js12 * Inspiration from jQuery color animation plugin by John Resig.
18 * $.color.parse("#fff").scale('rgb', 0.25).add('a', -0.5).toString()
19 * var c = $.color.extract($("#mydiv"), 'background-color');
21 * $.color.make(100, 50, 25, 0.4).toString() // returns "rgba(100,50,25,0.4)"
27 * produce a color rather than just crashing.
28 */(function(e){e.color={},e.color.make=function(t,n,r,i){var s={};return s.r=t||0,s.g=n||0,s.b=r||0,s.a=i!=null?i:1,s.add=function(e,t){for(var n=0;n<e.length;++n)s[e.charAt(n)]+=t;return s.normalize()},s.scale=function(e,t){for(var n=0;n<e.length;++n)s[e.charAt(n)]*=t;return s.normalize()},s.toString=function(){return s.a>=1?"rgb("+[s.r,s.g,s.b].join(",")+")":"rgba("+[s.r,s.g,s.b,s.a].join(",")+")"},s.normalize=function(){function e(e,t,n){return t<e?e:t>n?n:t}return s.r=e(0,parseInt(s.r),255),s.g=e(0,parseInt(s.g),255),s.b=e(0,parseInt(s.b),255),s.a=e(0,s.a,1),s},s.clone=function(){return e.color.make(s.r,s.b,s.g,s.a)},s.normalize()},e.color
[all...]
/external/chromium-trace/catapult/third_party/flot/
H A Djquery.colorhelpers.js5 * Inspiration from jQuery color animation plugin by John Resig.
11 * $.color.parse("#fff").scale('rgb', 0.25).add('a', -0.5).toString()
12 * var c = $.color.extract($("#mydiv"), 'background-color');
14 * $.color.make(100, 50, 25, 0.4).toString() // returns "rgba(100,50,25,0.4)"
20 * produce a color rather than just crashing.
24 $.color = {};
26 // construct color object with some convenient chainable helpers
27 $.color.make = function (r, g, b, a) {
67 return $.color
[all...]
H A Djquery.colorhelpers.min.js1 (function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o.add=function(c,d){for(var i=0;i<c.length;++i)o[c.charAt(i)]+=d;return o.normalize()};o.scale=function(c,f){for(var i=0;i<c.length;++i)o[c.charAt(i)]*=f;return o.normalize()};o.toString=function(){if(o.a>=1){return"rgb("+[o.r,o.g,o.b].join(",")+")"}else{return"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"}};o.normalize=function(){function clamp(min,value,max){return value<min?min:value>max?max:value}o.r=clamp(0,parseInt(o.r),255);o.g=clamp(0,parseInt(o.g),255);o.b=clamp(0,parseInt(o.b),255);o.a=clamp(0,o.a,1);return o};o.clone=function(){return $.color.make(o.r,o.b,o.g,o.a)};return o.normalize()};$.color.extract=function(elem,css){var c;do{c=elem.css(css).toLowerCase();if(c!=""&&c!="transparent")break;elem=elem.parent()}while(elem.length&&!$.nodeName(elem.get(0),"body"));if(c=="rgba(0, 0, 0, 0)")c="transparent";return $.color.parse(c)};$.color.parse=function(str){var res,m=$.color.make;if(res=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(str))return m(p (…)
H A Djquery.flot.js15 * Inspiration from jQuery color animation plugin by John Resig.
21 * $.color.parse("#fff").scale('rgb', 0.25).add('a', -0.5).toString()
22 * var c = $.color.extract($("#mydiv"), 'background-color');
24 * $.color.make(100, 50, 25, 0.4).toString() // returns "rgba(100,50,25,0.4)"
30 * produce a color rather than just crashing.
32 (function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o.add=function(c,d){for(var i=0;i<c.length;++i)o[c.charAt(i)]+=d;return o.normalize()};o.scale=function(c,f){for(var i=0;i<c.length;++i)o[c.charAt(i)]*=f;return o.normalize()};o.toString=function(){if(o.a>=1){return"rgb("+[o.r,o.g,o.b].join(",")+")"}else{return"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"}};o.normalize=function(){function clamp(min,value,max){return value<min?min:value>max?max:value}o.r=clamp(0,parseInt(o.r),255);o.g=clamp(0,parseInt(o.g),255);o.b=clamp(0,parseInt(o.b),255);o.a=clamp(0,o.a,1);return o};o.clone=function(){return $.color.make(o.r,o.b,o.g,o.a)};return o.normalize()};$.color
[all...]
H A Djquery.flot.min.js7 (function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o.add=function(c,d){for(var i=0;i<c.length;++i)o[c.charAt(i)]+=d;return o.normalize()};o.scale=function(c,f){for(var i=0;i<c.length;++i)o[c.charAt(i)]*=f;return o.normalize()};o.toString=function(){if(o.a>=1){return"rgb("+[o.r,o.g,o.b].join(",")+")"}else{return"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"}};o.normalize=function(){function clamp(min,value,max){return value<min?min:value>max?max:value}o.r=clamp(0,parseInt(o.r),255);o.g=clamp(0,parseInt(o.g),255);o.b=clamp(0,parseInt(o.b),255);o.a=clamp(0,o.a,1);return o};o.clone=function(){return $.color.make(o.r,o.b,o.g,o.a)};return o.normalize()};$.color.extract=function(elem,css){var c;do{c=elem.css(css).toLowerCase();if(c!=""&&c!="transparent")break;elem=elem.parent()}while(elem.length&&!$.nodeName(elem.get(0),"body"));if(c=="rgba(0, 0, 0, 0)")c="transparent";return $.color.parse(c)};$.color.parse=function(str){var res,m=$.color.make;if(res=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10));if(res=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10),parseFloat(res[4]));if(res=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55);if(res=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55,parseFloat(res[4]));if(res=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(str))return m(parseInt(res[1],16),parseInt(res[2],16),parseInt(res[3],16));if(res=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(str))return m(parseInt(res[1]+res[1],16),parseInt(res[2]+res[2],16),parseInt(res[3]+res[3],16));var name=$.trim(str).toLowerCase();if(name=="transparent")return m(255,255,255,0);else{res=lookupColors[name]||[0,0,0];return m(res[0],res[1],res[2])}};var lookupColors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);(function($){var hasOwnProperty=Object.prototype.hasOwnProperty;if(!$.fn.detach){$.fn.detach=function(){return this.each(function(){if(this.parentNode){this.parentNode.removeChild(this)}})}}function Canvas(cls,container){var element=container.children("."+cls)[0];if(element==null){element=document.createElement("canvas");element.className=cls;$(element).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(container);if(!element.getContext){if(window.G_vmlCanvasManager){element=window.G_vmlCanvasManager.initElement(element)}else{throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.")}}}this.element=element;var context=this.context=element.getContext("2d");var devicePixelRatio=window.devicePixelRatio||1,backingStoreRatio=context.webkitBackingStorePixelRatio||context.mozBackingStorePixelRatio||context.msBackingStorePixelRatio||context.oBackingStorePixelRatio||context.backingStorePixelRatio||1;this.pixelRatio=devicePixelRatio/backingStoreRatio;this.resize(container.width(),container.height());this.textContainer=null;this.text={};this._textCache={}}Canvas.prototype.resize=function(width,height){if(width<=0||height<=0){throw new Error("Invalid dimensions for plot, width = "+width+", height = "+height)}var element=this.element,context=this.context,pixelRatio=this.pixelRatio;if(this.width!=width){element.width=width*pixelRatio;element.style.width=width+"px";this.width=width}if(this.height!=height){element.height=height*pixelRatio;element.style.height=height+"px";this.height=height}context.restore();context.save();context.scale(pixelRatio,pixelRatio)};Canvas.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)};Canvas.prototype.render=function(){var cache=this._textCache;for(var layerKey in cache){if(hasOwnProperty.call(cache,layerKey)){var layer=this.getTextLayer(layerKey),layerCache=cache[layerKey];layer.hide();for(var styleKey in layerCache){if(hasOwnProperty.call(layerCache,styleKey)){var styleCache=layerCache[styleKey];for(var key in styleCache){if(hasOwnProperty.call(styleCache,key)){var positions=styleCache[key].positions;for(var i=0,position;position=positions[i];i++){if(position.active){if(!position.rendered){layer.append(position.element);position.rendered=true}}else{positions.splice(i--,1);if(position.rendered){position.element.detach()}}}if(positions.length==0){delete styleCache[key]}}}}}layer.show()}}};Canvas.prototype.getTextLayer=function(classes){var layer=this.text[classes];if(layer==null){if(this.textContainer==null){this.textContainer=$("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)}layer=this.text[classes]=$("<div></div>").addClass(classes).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)}return layer};Canvas.prototype.getTextInfo=function(layer,text,font,angle,width){var textStyle,layerCache,styleCache,info;text=""+text;if(typeof font==="object"){textStyle=font.style+" "+font.variant+" "+font.weight+" "+font.size+"px/"+font.lineHeight+"px "+font.family}else{textStyle=font}layerCache=this._textCache[layer];if(layerCache==null){layerCache=this._textCache[layer]={}}styleCache=layerCache[textStyle];if(styleCache==null){styleCache=layerCache[textStyle]={}}info=styleCache[text];if(info==null){var element=$("<div></div>").html(text).css({position:"absolute","max-width":width,top:-9999}).appendTo(this.getTextLayer(layer));if(typeof font==="object"){element.css({font:textStyle,color:font.color})}els
[all...]
/external/chromium-trace/catapult/third_party/graphy/graphy/backends/google_chart_api/
H A Dutil.py41 color='chco', variable
68 color=',', variable
/external/chromium-trace/catapult/third_party/graphy/graphy/
H A Dcommon.py33 color: color (as hex string, f.ex. '0000ff' for blue)
50 def __init__(self, shape, color, size):
55 self.color = color
62 def __init__(self, color):
63 self.color = color
94 color: DEPRECATED
99 def __init__(self, points, label=None, style=None, markers=None, color
136 color = property(_GetColor, _SetColor) variable in class:DataSeries
[all...]
H A Dpie_chart.py31 color: color of the segment (if any)
33 def __init__(self, size, label=None, color=None):
36 'Label looks like a hex triplet; it might be a color. '
37 'The old argument order (color before label) is '
40 style = common._BasicStyle(color)
54 # Since Segments are so simple, provide color for convenience.
56 return self.style.color
58 def _SetColor(self, color):
59 self.style.color
61 color = property(_GetColor, _SetColor, variable in class:Segment
[all...]
/external/chromium-trace/catapult/tracing/third_party/css-element-queries/test/
H A Dmootools-core-full-nocompat.js3769 el.style.color = 'red';
3770 el.style.color = null;
3771 var doesNotRemoveStyles = el.style.color == 'red';
3773 // check for oldIE, which returns border* shorthand styles in the wrong order (color-width-style instead of width-style-color)
3898 var color = result.match(/rgba?\([\d\s,]+\)/);
3899 if (color) result = result.replace(color[0], color[0].rgbToHex());
3939 backgroundColor: 'rgb(@, @, @)', backgroundSize: '@px', backgroundPosition: '@px @px', color
[all...]
/external/clang/test/CodeCompletion/
H A Denum-switch-case-qualified.cpp21 void test(enum N::C::Color color) { argument
22 switch (color) {
H A Denum-switch-case.c11 void test(enum Color color) { argument
12 switch (color) {
38 // CHECK-CC2-NEXT: COMPLETION: color : [#enum Color#]color
H A Denum-switch-case.cpp13 void test(enum N::Color color) { argument
14 switch (color) {
H A Dmacros.c7 enum Color color; member in struct:Point
12 switch (p->IDENTITY(color)) {
26 // CC1: color
/external/clang/test/CodeGen/
H A D2003-08-17-DeadCodeShortCircuit.c3 int test(_Bool pos, _Bool color) { argument
5 return (pos && color);

Completed in 931 milliseconds

1234567891011>>