From: Scott Worley Date: Tue, 27 May 2014 03:43:45 +0000 (-0700) Subject: Name r X-Git-Url: http://git.scottworley.com/nt3d/commitdiff_plain/e06a4a20a8c49061c64714bf718061b5d695ef35?hp=6814d9fede0f0e86f0dd01aff19c9a412495b1cd Name r --- diff --git a/medusa.html b/medusa.html index d133692..9bd3dc7 100644 --- a/medusa.html +++ b/medusa.html @@ -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; - 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]); }