From 629b4e86d4111f244373ef90cc07dcd01dac65eb Mon Sep 17 00:00:00 2001 From: mattmcw Date: Wed, 24 Mar 2021 10:06:44 -0400 Subject: [PATCH] Write hatch lines to rowTemp when config.fill is true. --- stipple_gen.pde | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/stipple_gen.pde b/stipple_gen.pde index 547d8e1..c6ee295 100644 --- a/stipple_gen.pde +++ b/stipple_gen.pde @@ -1332,6 +1332,7 @@ void draw () { float SVGscale = (800.0 / (float) config.canvasHeight); int xOffset = (int) (1600 - (SVGscale * config.canvasWidth / 2)); int yOffset = (int) (400 - (SVGscale * config.canvasHeight / 2)); + ArrayList hatchLines; if (FileModeTSP) { // Plot the PATH between the points only. @@ -1377,7 +1378,14 @@ void draw () { rowTemp = ""; // Typ: - + if (config.fill) { + hatchLines = fillCircle(xTemp, yTemp, dotrad, 45.0, config.MaxDotSize); + if (hatchLines.size() > 0) { + for (float[] linePoints : hatchLines) { + rowTemp += ""; + } + } + } FileOutput = append(FileOutput, rowTemp); } }