From 754faecd02ef61e47c64a8fb044aa793662c049f Mon Sep 17 00:00:00 2001 From: Max Cahill <1bardesign@gmail.com> Date: Fri, 24 Sep 2021 11:48:25 +1000 Subject: [PATCH] fixed pingpong backwards --- mathx.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mathx.lua b/mathx.lua index 6c4ef46..4e63d59 100644 --- a/mathx.lua +++ b/mathx.lua @@ -92,7 +92,7 @@ end --pingpong from 0 to 1 and back again function mathx.pingpong(f) - return math.abs(f - 0.5) * 2 + return 1 - math.abs(f - 0.5) * 2 end --quadratic ease in