mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix lines that are 2x too wide (bug #1283)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user