//>>built
define("dojox/dgauges/components/utils",["dojo/_base/lang","dojo/_base/Color"],function(f,n){var g={};f.mixin(g,{brightness:function(c,b){var a=f.mixin(null,c);a.r=Math.max(Math.min(a.r+b,255),0);a.g=Math.max(Math.min(a.g+b,255),0);a.b=Math.max(Math.min(a.b+b,255),0);return a},createGradient:function(c){for(var b={colors:[]},a,d=0;d<c.length;d++)0==d%2?a={offset:c[d]}:(a.color=c[d],b.colors.push(a));return b},_setter:function(c,b,a){for(var d=0;d<b.length;d++)c[b[d]]=a[d]},genericCircularGauge:function(c,
b,a,d,f,p,q,h,k,l,m){h||(h="clockwise");k||(k={family:"Helvetica",style:"normal",size:"10pt",color:"#555555"});l||(l="inside");m||(m=function(a,e,b){e=e.tickStroke;var d,c;e&&(d={color:e.color?e.color:"#000000",width:e.width?e.width:.5},c=(new n(e.color)).toRgb(),c={color:e.color?g.brightness({r:c[0],g:c[1],b:c[2]},51):"#000000",width:e.width?.6*e.width:.3});return a.createLine({x1:b.isMinor?2:0,y1:0,x2:b.isMinor?8:10,y2:0}).setStroke(b.isMinor?c:d)});this._setter(c,"originX originY radius startAngle endAngle orientation font labelPosition tickShapeFunc".split(" "),
[a,d,f,p,q,h,k,l,m]);b.set("interactionArea","gauge");b.set("indicatorShapeFunc",function(a,b){return a.createPolyline([0,-5,b.scale.radius-6,0,0,5,0,-5]).setStroke({color:"#333333",width:.25}).setFill(c._gauge.indicatorColor)})}});return g});