X-Git-Url: http://git.scottworley.com/nt3d/blobdiff_plain/6814d9fede0f0e86f0dd01aff19c9a412495b1cd..e06a4a20a8c49061c64714bf718061b5d695ef35:/medusa.html?ds=sidebyside 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]); }