From be96a717504d0f081f7f77b4eb863ae1676a02d9 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 7 Feb 2020 16:41:18 +0100 Subject: [PATCH] Add comments for shape variables --- voicegardens/static/voicegardens.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 5a5c4ea..56c65ff 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -170,10 +170,11 @@ class GeneratedShape { this.deltaX = 0.0; this.deltaY = 0.0; - // ??? + // The speed at which the shape 'springs' towards its final destination. this.springing = 0.0009; - // ??? + // The speed at which the shape rocks back and forth when it is in the + // process of coming to a halt. this.damping = 0.98; // Value that controls the tightness or looseness of the curves between the