aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorhwc4872012-05-17 16:52:38 -0700
committerhwc4872012-05-17 16:52:38 -0700
commit651341341f894c4d0def267ab3250e77f7d0c276 (patch)
tree9b4ac4d2d97c9d1c567b7111c8271721dc857e2b /js
parent9321b1d7ab2d23e165ac90e9eea3287f72463948 (diff)
downloadninja-651341341f894c4d0def267ab3250e77f7d0c276.tar.gz
canvas 2d radial gradient render problem.
Diffstat (limited to 'js')
-rwxr-xr-xjs/lib/geom/rectangle.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js
index 8fc80c60..711245ae 100755
--- a/js/lib/geom/rectangle.js
+++ b/js/lib/geom/rectangle.js
@@ -541,7 +541,7 @@ exports.Rectangle = Object.create(GeomObj, {
541 //gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2-this._strokeWidth, h/2, Math.max(ww, hh)/2); 541 //gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2-this._strokeWidth, h/2, Math.max(ww, hh)/2);
542 gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2, h/2, Math.max(ww, hh)/2); 542 gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2, h/2, Math.max(ww, hh)/2);
543 } else { 543 } else {
544 gradient = ctx.createLinearGradient(inset/2, h/2, w-inset, h/2); 544 gradient = ctx.createLinearGradient(inset, h/2, w-inset, h/2);
545 } 545 }
546 colors = this._fillColor.color; 546 colors = this._fillColor.color;
547 547