Play with an alternate scale

This commit is contained in:
mattmcw 2021-03-25 18:38:53 -04:00
parent 5f73cb1d82
commit 28d5224552
2 changed files with 6 additions and 6 deletions

View File

@ -9,8 +9,8 @@
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="3200" width="1536"
height="800" height="1056"
id="svg2985" id="svg2985"
version="1.1" version="1.1"
inkscape:version="0.48.1 r9760"> inkscape:version="0.48.1 r9760">
@ -24,8 +24,8 @@
inkscape:pageopacity="0.0" inkscape:pageopacity="0.0"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="0.35" inkscape:zoom="0.35"
inkscape:cx="1600" inkscape:cx="1536"
inkscape:cy="400" inkscape:cy="1056"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:current-layer="layer1" inkscape:current-layer="layer1"
showgrid="false" /> showgrid="false" />

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1333,8 +1333,8 @@ void draw () {
//Need to get some background on this. //Need to get some background on this.
//what are these magic numbers? //what are these magic numbers?
float SVGscale = (800.0 / (float) config.canvasHeight); float SVGscale = (800.0 / (float) config.canvasHeight);
int xOffset = (int) (1600 - (SVGscale * config.canvasWidth / 2)); int xOffset = (int) (1536 - (SVGscale * config.canvasWidth / 2));
int yOffset = (int) (400 - (SVGscale * config.canvasHeight / 2)); int yOffset = (int) (1056 - (SVGscale * config.canvasHeight / 2));
ArrayList<float[]> hatchLines; ArrayList<float[]> hatchLines;
if (FileModeTSP) { if (FileModeTSP) {