Hilbert curve

From JSXGraph Wiki
Revision as of 17:05, 28 November 2008 by A WASSERMANN (talk | contribs)

The famous space filling curve drawn with JavaScript. If it is set to level=9 the curve is defined by 262 144 points - so be careful if you are using the Internet Explorer.

 <form>
 Set the iteration level:
 <select id='maxlev' style='margin:1em'>
       <option value="1"> 1
       <option value="2"> 2
       <option value="3"> 3
       <option value="4"> 4
       <option value="5"> 5
       <option value="6"> 6
       <option value="7"> 7
       <option value="8"> 8
       <option value="9"> 9
 </select>
 <input type="button" value=" set " onClick="doIt()" style='margin:1em'>
 </form>