3 <title>Sphere primitive
</title>
4 <script type=
"text/javascript" src=
"nt3d.js"></script>
5 <script type=
"text/javascript">
6 function sphere_primitive(radius, lattitude_steps, longitude_steps) {
7 return nt3d.sphere([
0,
0,
0], radius, lattitude_steps, longitude_steps);
9 var params = [["Radius",
1],
10 ["Lattitude steps",
20],
11 ["Longitude steps",
20]];
14 <body onload=
"nt3d.framework(sphere_primitive, params)">
15 <h1>Sphere primitive
</h1>
16 <p>There's a sphere primitive.
</p>