From 9adcc3c78ef446761a02d9fd528e9306f324ad19 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 28 Aug 2023 11:40:55 +0300 Subject: [WGL/P] Time now actually is in tents of a second --- Year 2/Computer Graphics with WebGL/Project/Project.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Year 2/Computer Graphics with WebGL/Project/Project.html') 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); -- cgit v1.3.1-26-gb76a