Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Project / Project.html
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Year 2/Computer Graphics with WebGL/Project/Project.html4
diff --git a/Year 2/Computer Graphics with WebGL/Project/Project.html b/Year 2/Computer Graphics with WebGL/Project/Project.html
index 7b41cbe..7b62624 100644
--- a/Year 2/Computer Graphics with WebGL/Project/Project.html
+++ b/Year 2/Computer Graphics with WebGL/Project/Project.html
@@ -136,8 +136,8 @@ h2 {
function drawFrame()
{
if (startT == -1) { startT = Date.now(); t = 0; }
- var candidat = Math.floor(Date.now() - startT) / 10; // tenths of a second
- if (pauseAnimations) startT += (candidat - t)*10;
+ var candidat = Math.floor(Date.now() - startT) / 100; // tenths of a second
+ if (pauseAnimations) startT += (candidat - t)*100;
else t = candidat;
gl.clear(gl.COLOR_BUFFER_BIT+gl.DEPTH_BUFFER_BIT);