From 4ef962dc354abb3ed1ea94599729ac5f849dacf7 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Fri, 1 Jul 2022 05:49:58 -0500 Subject: [PATCH] Pendulum: Cleanup extraneous code --- Pendulum/Pendulum.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Pendulum/Pendulum.js b/Pendulum/Pendulum.js index 3b6dad5..2877493 100644 --- a/Pendulum/Pendulum.js +++ b/Pendulum/Pendulum.js @@ -14,7 +14,8 @@ const vertex_shader = ` { gl_Position = u_ModelMatrix * a_Position; gl_PointSize = 5.0; - } `; + } +`; const fragment_shader = ` @@ -23,9 +24,8 @@ const fragment_shader = ` void main() { gl_FragColor = u_Color; - } `; - -var SIDES_DELTA = 0; + } +`; function main() { // Retrieve element @@ -45,7 +45,7 @@ function main() { } // create a pendulum object - var pendulum = new Pendulum({ angle: 0, length: PEN_LENGTH, radius: BOB_RADIUS }); + var pendulum = new Pendulum({ length: PEN_LENGTH, radius: BOB_RADIUS }); pendulum.init(gl); // Specify the color for clearing