]> git.scottworley.com Git - nt3d/commitdiff
Name r
authorScott Worley <scottworley@scottworley.com>
Tue, 27 May 2014 03:43:45 +0000 (20:43 -0700)
committerScott Worley <scottworley@scottworley.com>
Tue, 27 May 2014 03:43:45 +0000 (20:43 -0700)
medusa.html

index d13369236c3f4c19f79fa1798aa0044de0941b4a..9bd3dc7e877d95d8d0ede976d5365b56d2ec0f8a 100644 (file)
@@ -10,8 +10,9 @@
         for (var finger_point = 0; finger_point <= params.finger_points; finger_point++) {
           var finger_progress = finger_point / params.finger_points;
           var angle = (finger_angle + twirl_angle * finger_progress) * 2 * Math.PI;
         for (var finger_point = 0; finger_point <= params.finger_points; finger_point++) {
           var finger_progress = finger_point / params.finger_points;
           var angle = (finger_angle + twirl_angle * finger_progress) * 2 * Math.PI;
-          var x = ring_radius * Math.cos(angle);
-          var y = ring_radius * Math.sin(angle);
+          var r = ring_radius;
+          var x = r * Math.cos(angle);
+          var y = r * Math.sin(angle);
           var z = params.finger_height * finger_progress;
           path.push([x, y, z]);
         }
           var z = params.finger_height * finger_progress;
           path.push([x, y, z]);
         }