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