From 44e1ddb45bec200c9ef8bdacc14c7893bd97c1b3 Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 13 Jul 2009 18:03:54 +0000 Subject: [PATCH] fix lines that are 2x too wide (bug #1283) --- core/src/processing/core/PGraphics2D.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/core/PGraphics2D.java b/core/src/processing/core/PGraphics2D.java index d2b299289..68c19ea30 100644 --- a/core/src/processing/core/PGraphics2D.java +++ b/core/src/processing/core/PGraphics2D.java @@ -1698,7 +1698,7 @@ public class PGraphics2D extends PGraphics { float len = (float) Math.sqrt(dX*dX + dY*dY); // TODO stroke width should be transformed! - float rh = strokeWeight / len; + float rh = (strokeWeight / len) / 2; float dx0 = rh * dY; float dy0 = rh * dX;