diff --git a/baumgen.js b/baumgen.js index 0475e78..974969e 100644 --- a/baumgen.js +++ b/baumgen.js @@ -27,7 +27,10 @@ function gen_tree(pos, maxheight) { ); } - baum.angle = Math.PI / 2; // + Math.random() * 0.2 - 0.1; + baum.angle = Math.PI / 2; + if(Math.random() < 0.3) { + baum.angle += Math.random() * 0.2 - 0.1; + } if((baum.crown.shape != "triangle") && (Math.random() < 0.5)) { var b = {