Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Project / Project.html
diff options
context:
space:
mode:
Commit9adcc3c78ef446761a02d9fd528e9306f324ad19 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-08-28 11:40:55 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-08-28 11:40:55 +0300
Filesc476bc7609fc2a217cf32483c8bd4f5153e1a87c /Year 2/Computer Graphics with WebGL/Project/Project.html
uni-projects-9adcc3c78ef446761a02d9fd528e9306f324ad19.tar
uni-projects-9adcc3c78ef446761a02d9fd528e9306f324ad19.tar.gz
uni-projects-9adcc3c78ef446761a02d9fd528e9306f324ad19.zip
Parent0f4e5c5bd94d6bf298b6791715cc03ad1f053415 (diff)
[WGL/P] Time now actually is in tents of a second
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);