From 84fe9120e1ba1fef3cea5f0133f796f0fe7fbbd5 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Thu, 25 Mar 2021 18:51:13 -0400 Subject: [PATCH] Try different scale --- stipple_gen.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stipple_gen.pde b/stipple_gen.pde index bd34b71..9a97860 100644 --- a/stipple_gen.pde +++ b/stipple_gen.pde @@ -1332,7 +1332,7 @@ void draw () { //Need to get some background on this. //what are these magic numbers? - float SVGscale = (800.0 / (float) config.canvasHeight); + float SVGscale = (400.0 / (float) config.canvasHeight); int xOffset = (int) (1536 - (SVGscale * config.canvasWidth / 2)); int yOffset = (int) (1056 - (SVGscale * config.canvasHeight / 2)); ArrayList hatchLines; @@ -1349,8 +1349,8 @@ void draw () { Vec2D p1 = particles[particleRoute[i]]; - float xTemp = SVGscale*p1.x + xOffset; - float yTemp = SVGscale*p1.y + yOffset; + float xTemp = SVGscale * p1.x + xOffset; + float yTemp = SVGscale * p1.y + yOffset; rowTemp = xTemp + " " + yTemp + "\r";