Difference between revisions of "Plant generation I"

From JSXGraph Wiki
Jump to: navigation, search
Line 2: Line 2:
 
<html>
 
<html>
 
<link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
 
<link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
 
 
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
 
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
 
<form><textarea id="inputtext0" rows=15 cols=35 wrap="off" style="width:600px;">
 
<form><textarea id="inputtext0" rows=15 cols=35 wrap="off" style="width:600px;">
Line 99: Line 98:
 
function run(nr) {
 
function run(nr) {
 
   brd[nr].suspendUpdate();
 
   brd[nr].suspendUpdate();
   var code = $('inputtext'+nr).value;
+
   var code = document.getElementById('inputtext'+nr).value;
 
   if (code=='') { return; }
 
   if (code=='') { return; }
 
   t = turtle[nr];
 
   t = turtle[nr];

Revision as of 18:19, 29 October 2009

For an explanation see L-systems.