]>
Commit | Line | Data |
---|---|---|
1 | <html> | |
2 | <head> | |
3 | <title>Sphere primitive</title> | |
4 | <script type="text/javascript" src="nt3d.js"></script> | |
5 | <script type="text/javascript"> | |
6 | function sphere_primitive(params.) { | |
7 | return nt3d.sphere([0,0,0], params.radius, params.lattitude_steps, params.longitude_steps); | |
8 | } | |
9 | var params = [["radius", 1], | |
10 | ["lattitude_steps", 20], | |
11 | ["longitude_steps", 20]]; | |
12 | </script> | |
13 | </head> | |
14 | <body onload="nt3d.framework(sphere_primitive, params)"> | |
15 | <h1>Sphere primitive</h1> | |
16 | <p>There's a sphere primitive.</p> | |
17 | </body> | |
18 | </html> |