From 96b1efb1532795d9952f0e8287eee823cffa2a46 Mon Sep 17 00:00:00 2001 From: Fr3deric Date: Sat, 9 Mar 2019 23:13:00 +0100 Subject: [PATCH] add config option for outline --- baumgen.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/baumgen.js b/baumgen.js index 6982993..afc1c2c 100644 --- a/baumgen.js +++ b/baumgen.js @@ -259,15 +259,18 @@ function draw() { var rowspace = 20; var inspace = 30; var outspace = 10; + var outline = true; var maxh = (height - (rows-1)*rowspace - 2*outspace - 2*inspace) / rows; - var outline = new Path.Rectangle({ - point: new Point(outspace, outspace), - size: new Size(width - 2*outspace, height - 2*outspace), - strokeWidth: 2, - strokeColor: 'black' - }); + if(outline) { + var outlinepath = new Path.Rectangle({ + point: new Point(outspace, outspace), + size: new Size(width - 2*outspace, height - 2*outspace), + strokeWidth: 2, + strokeColor: 'black' + }); + } for(var row=0; row