Plant generation I: Difference between revisions
From JSXGraph Wiki
| A WASSERMANN (talk | contribs) No edit summary | A WASSERMANN (talk | contribs) No edit summary | ||
| 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/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 =  |    var code = document.getElementById('inputtext'+nr).value; | ||
|    if (code=='') { return; } |    if (code=='') { return; } | ||
|    t = turtle[nr]; |    t = turtle[nr]; | ||
Revision as of 17:19, 29 October 2009
For an explanation see L-systems.
- Przemyslaw Prusinkiewicz, James Hanan: Lindenmayer Systems, Fractals, and Plants (Lecture Notes in Biomathematics). Springer-Verlag 1989, ISBN 0-387-97092-4
- http://en.wikipedia.org/wiki/L-system
