aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/canvas-runtime.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/canvas-runtime.js b/assets/canvas-runtime.js
index cd673854..091d8b7a 100644
--- a/assets/canvas-runtime.js
+++ b/assets/canvas-runtime.js
@@ -2320,7 +2320,8 @@ NinjaCvsRt.RuntimeSubPath = Object.create(NinjaCvsRt.RuntimeGeomObj, {
2320 if (ipColor.gradientMode){ 2320 if (ipColor.gradientMode){
2321 var position, gradient, cs, inset; //vars used in gradient calculations 2321 var position, gradient, cs, inset; //vars used in gradient calculations
2322 inset = Math.ceil( lw ) - 0.5; 2322 inset = Math.ceil( lw ) - 0.5;
2323 2323 inset=0;
2324
2324 if(ipColor.gradientMode === "radial") { 2325 if(ipColor.gradientMode === "radial") {
2325 var ww = w - 2*lw, hh = h - 2*lw; 2326 var ww = w - 2*lw, hh = h - 2*lw;
2326 gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2, h/2, Math.max(ww, hh)/2); 2327 gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2, h/2, Math.max(ww, hh)/2);
@@ -2532,6 +2533,7 @@ NinjaCvsRt.RuntimeBrushStroke = Object.create(NinjaCvsRt.RuntimeGeomObj, {
2532 if (ipColor.gradientMode){ 2533 if (ipColor.gradientMode){
2533 var position, gradient, cs, inset; //vars used in gradient calculations 2534 var position, gradient, cs, inset; //vars used in gradient calculations
2534 inset = Math.ceil( lw ) - 0.5; 2535 inset = Math.ceil( lw ) - 0.5;
2536 inset=0;
2535 2537
2536 if(ipColor.gradientMode === "radial") { 2538 if(ipColor.gradientMode === "radial") {
2537 var ww = w - 2*lw, hh = h - 2*lw; 2539 var ww = w - 2*lw, hh = h - 2*lw;