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