Difference between revisions of "L-systems"

From JSXGraph Wiki
Jump to navigationJump to search
Line 148: Line 148:
  
 
<html>
 
<html>
<form><textarea id="inputtext1" rows=3 cols=35 wrap="off" style="width:600px;">
+
<form><textarea id="inputtext2" rows=3 cols=35 wrap="off" style="width:600px;">
 
</textarea><br />
 
</textarea><br />
<input type="button" value="run" onClick="run(1)">
+
<input type="button" value="run" onClick="run(2)">
<input type="button" value="clear" onClick="clearturtle(1)">
+
<input type="button" value="clear" onClick="clearturtle(2)">
 
</form>
 
</form>
<div id="box1" class="jxgbox" style="width:600px; height:600px;"></div>
+
<div id="box2" class="jxgbox" style="width:600px; height:600px;"></div>
 
<script language="JavaScript">
 
<script language="JavaScript">
brd[1] = JXG.JSXGraph.initBoard('box1', {originX: 300, originY: 300, unitX: 1, unitY: 1});
+
brd[2] = JXG.JSXGraph.initBoard('box2', {originX: 300, originY: 300, unitX: 1, unitY: 1});
turtle[1] = new JSXTurtleObj(brd[1]);
+
turtle[2] = new JSXTurtleObj(brd[2]);
 
</script>
 
</script>
 
</html>
 
</html>

Revision as of 21:46, 30 December 2008

Sierpinski curve



Quadratic snowflake variation


Dragon curve