Hilbert curve: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
If it is set to level=9 the curve is defined by | 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. | 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> | |||
<html> | <html> |
Revision as of 17:05, 28 November 2008
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>