summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2012-05-21 15:32:27 +0300
committerYuval Adam <yuv.adm@gmail.com>2012-05-21 15:32:27 +0300
commitd1bb0e86866b85dfd7b0a30233fed3e6ab9363a5 (patch)
treeb48a714a3ac398f09b981b3757520e8fbc934c66
parent037388ba3676dcd8ea9029063a59903155499011 (diff)
fixed sierpinski triangle with draw_consts
-rw-r--r--index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.html b/index.html
index 87af5f6..a19c480 100644
--- a/index.html
+++ b/index.html
@@ -95,7 +95,7 @@ for (var i=0; i&lt;coords.length; i++) {
<script>
var lsys_dir = {
'koch_curve': new LSystem('F', {'F': 'F+F-F-F+F'}).iterate(3).draw(Math.PI/2),
- 'sierpinski': new LSystem('A', {'A': 'B-A-B', 'B': 'A+B+A'}).iterate(3).draw(Math.PI/3)
+ 'sierpinski': new LSystem('A', {'A': 'B-A-B', 'B': 'A+B+A'}, ['A', 'B']).iterate(4).draw(Math.PI/3)
}
var WIDTH = 500; //window.innerWidth;