]> git.scottworley.com Git - nt3d/blobdiff - sphere_primitive.html
Name r
[nt3d] / sphere_primitive.html
index 0e5095a2ca2eddaf46ffb39183f2b2c6ef1a578d..4eaa13209db84a77674e189e5da613693aeb95bb 100644 (file)
@@ -3,12 +3,12 @@
     <title>Sphere primitive</title>
     <script type="text/javascript" src="nt3d.js"></script>
     <script type="text/javascript">
-      function sphere_primitive(radius, lattitude_steps, longitude_steps) {
-       return nt3d.sphere([0,0,0], radius, lattitude_steps, longitude_steps);
+      function sphere_primitive(params.) {
+       return nt3d.sphere([0,0,0], params.radius, params.lattitude_steps, params.longitude_steps);
       }
-      var params = [["Radius", 1],
-                    ["Lattitude steps", 20],
-                    ["Longitude steps", 20]];
+      var params = [["radius", 1],
+                    ["lattitude_steps", 20],
+                    ["longitude_steps", 20]];
     </script>
   </head>
   <body onload="nt3d.framework(sphere_primitive, params)">