From 14e101e3822da595baaaaeaf91e9a00c79ac4b38 Mon Sep 17 00:00:00 2001 From: Pushkar Joshi Date: Tue, 1 May 2012 10:21:36 -0700 Subject: Fixed 1436 Brush: Calligraphic brushstroke is slightly thicker than the round tip brushstroke --- js/lib/geom/brush-stroke.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'js/lib/geom') diff --git a/js/lib/geom/brush-stroke.js b/js/lib/geom/brush-stroke.js index 27d12f03..574cead1 100755 --- a/js/lib/geom/brush-stroke.js +++ b/js/lib/geom/brush-stroke.js @@ -657,11 +657,8 @@ var BrushStroke = function GLBrushStroke() { ctx.lineCap="butt"; ctx.globalCompositeOperation = 'source-over'; ctx.globalAlpha = this._strokeColor[3]; - //todo figure out the correct formula for the line width - ctx.lineWidth=2; - if (t===numTraces-1){ - ctx.lineWidth = 1; - } + + for (t=0;t