Browse Source

increase canvas size

master
Fr3deric 5 years ago
parent
commit
61e5f3492e
  1. 6
      lindenmayer-system/lindenmeyer-system.html

6
lindenmayer-system/lindenmeyer-system.html

@ -243,8 +243,8 @@ function sierpinski() { @@ -243,8 +243,8 @@ function sierpinski() {
']': draw_state_pop(),
}
);
p.scale(60);
p.translate(new Point(200, 200));
p.scale(80);
p.translate(new Point(300, 300));
p.strokeWidth = 1;
p.strokeColor = '#ff00ff';
}
@ -335,7 +335,7 @@ window.onload = function() { @@ -335,7 +335,7 @@ window.onload = function() {
<button id="barnsley-fern-defects">barnsley fern (random defects)</button>
<button id="other-tree">other tree</button>
<hr>
<canvas id="canvas" style="width: 500px; height: 500px;" resize></canvas>
<canvas id="canvas" style="width: 700px; height: 700px;" resize></canvas>
</body>
</html>

Loading…
Cancel
Save