From 8ccb253c206b77c5d7452bd7c8f4374e83e617c8 Mon Sep 17 00:00:00 2001 From: dlannan Date: Sun, 29 Dec 2024 21:18:26 +1030 Subject: [PATCH] Fixed time in gp sample. --- projects/examples/samples/sapp-gp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/examples/samples/sapp-gp.lua b/projects/examples/samples/sapp-gp.lua index 1b3518f..6a3d9c3 100644 --- a/projects/examples/samples/sapp-gp.lua +++ b/projects/examples/samples/sapp-gp.lua @@ -55,7 +55,7 @@ local function frame() sgp.sgp_clear() -- Draw an animated rectangle that rotates and changes its colors. - local time = tonumber(sapp.sapp_frame_count() * sapp.sapp_frame_duration()) + local time = tonumber(sapp.sapp_frame_count()) * sapp.sapp_frame_duration() local r = math.sin(time)*0.5+0.5 local g = math.cos(time)*0.5+0.5 sgp.sgp_set_color(r, g, 0.3, 1.0)