//>>built
define("dojox/color/SimpleColorModel",["dojo/_base/array","dojo/_base/declare","dojox/color"],function(h,f,d){return f("dojox.color.SimpleColorModel",null,{_startColor:null,_endColor:null,constructor:function(b,c){if(void 0!=c)this._startColor=b,this._endColor=c;else{var a=b.toHsl();a.s=100;a.l=85;this._startColor=d.fromHsl(a.h,a.s,a.l);this._startColor.a=b.a;a.l=15;this._endColor=d.fromHsl(a.h,a.s,a.l);this._endColor.a=b.a}},_getInterpoledValue:function(b,c,a){return b+(c-b)*a},getNormalizedValue:function(b){},
getColor:function(b){var c=this.getNormalizedValue(b),a=this._startColor.toHsl(),e=this._endColor.toHsl();b=this._getInterpoledValue(a.h,e.h,c);var g=this._getInterpoledValue(a.s,e.s,c);a=this._getInterpoledValue(a.l,e.l,c);c=this._getInterpoledValue(this._startColor.a,this._endColor.a,c);b=d.fromHsl(b,g,a);b.a=c;return b}})});