diff options
author | hwc487 | 2012-04-27 13:53:14 -0700 |
---|---|---|
committer | hwc487 | 2012-04-27 13:53:14 -0700 |
commit | b460ea23025d9d5067dc78e2ae97c71d0dce2d13 (patch) | |
tree | 67c3b549d83c490364ed4a4c0dc6304106595b69 /js/lib/geom/circle.js | |
parent | e73fba18b095f0c270f5d954e5993c155b488c73 (diff) | |
parent | 917668dbd753d69b346cb9fd2e665fbe257f5311 (diff) | |
download | ninja-b460ea23025d9d5067dc78e2ae97c71d0dce2d13.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Canvas-interaction
Diffstat (limited to 'js/lib/geom/circle.js')
-rwxr-xr-x | js/lib/geom/circle.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/geom/circle.js b/js/lib/geom/circle.js index b7027eec..0f1f49a9 100755 --- a/js/lib/geom/circle.js +++ b/js/lib/geom/circle.js | |||
@@ -464,9 +464,9 @@ var Circle = function GLCircle() { | |||
464 | if(this._fillColor.gradientMode) { | 464 | if(this._fillColor.gradientMode) { |
465 | if(this._fillColor.gradientMode === "radial") { | 465 | if(this._fillColor.gradientMode === "radial") { |
466 | gradient = ctx.createRadialGradient(xCtr, yCtr, 0, | 466 | gradient = ctx.createRadialGradient(xCtr, yCtr, 0, |
467 | xCtr, yCtr, Math.max(yScale, xScale)); | 467 | xCtr, yCtr, Math.max(this._width, this._height)/2); |
468 | } else { | 468 | } else { |
469 | gradient = ctx.createLinearGradient(0, this._height/2, this._width, this._height/2); | 469 | gradient = ctx.createLinearGradient(lineWidth/2, this._height/2, this._width-lineWidth, this._height/2); |
470 | } | 470 | } |
471 | colors = this._fillColor.color; | 471 | colors = this._fillColor.color; |
472 | 472 | ||