- for (var finger_num = 0; finger_num < params.num_fingers; finger_num++) {
- var finger_angle = finger_num / params.num_fingers;
+ var num_fingers = Math.round((ring_radius * 2 * Math.PI) / params.finger_spacing);
+ for (var finger_num = 0; finger_num < num_fingers; finger_num++) {
+ var finger_angle = finger_num / num_fingers;