diff options
Diffstat (limited to 'js/lib/geom/line.js')
-rwxr-xr-x | js/lib/geom/line.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/geom/line.js b/js/lib/geom/line.js index eaa26cf0..51a6fa98 100755 --- a/js/lib/geom/line.js +++ b/js/lib/geom/line.js | |||
@@ -365,7 +365,7 @@ var Line = function GLLine( world, xOffset, yOffset, width, height, slope, strok | |||
365 | if (this._strokeColor) { | 365 | if (this._strokeColor) { |
366 | if(this._strokeColor.gradientMode) { | 366 | if(this._strokeColor.gradientMode) { |
367 | if(this._strokeColor.gradientMode === "radial") { | 367 | if(this._strokeColor.gradientMode === "radial") { |
368 | gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2, h/2, h/2); | 368 | gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2, h/2, Math.max(w/2, h/2)); |
369 | } else { | 369 | } else { |
370 | gradient = ctx.createLinearGradient(0, h/2, w, h/2); | 370 | gradient = ctx.createLinearGradient(0, h/2, w, h/2); |
371 | } | 371 | } |