From e06a4a20a8c49061c64714bf718061b5d695ef35 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Mon, 26 May 2014 20:43:45 -0700 Subject: [PATCH 1/1] Name r --- medusa.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]); } -- 2.44.1