]> git.scottworley.com Git - nt3d/blame - sphere_primitive.html
Widening
[nt3d] / sphere_primitive.html
CommitLineData
efae2dc2
SW
1<html>
2 <head>
3 <title>Sphere primitive</title>
4 <script type="text/javascript" src="nt3d.js"></script>
5 <script type="text/javascript">
3bafa9bd
SW
6 function sphere_primitive(params.) {
7 return nt3d.sphere([0,0,0], params.radius, params.lattitude_steps, params.longitude_steps);
efae2dc2 8 }
3bafa9bd
SW
9 var params = [["radius", 1],
10 ["lattitude_steps", 20],
11 ["longitude_steps", 20]];
efae2dc2
SW
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>