Merge pull request #72 from Sheepolution/pr

Fix incorrect implementation of pingpong
This commit is contained in:
Max Cahill 2024-02-19 15:09:00 +11:00 committed by GitHub
commit 63294a6e26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,7 @@ end
--pingpong from 0 to 1 and back again
function mathx.pingpong(f)
return 1 - math.abs(f - 0.5) * 2
return 1 - math.abs(1 - f % 2)
end
--quadratic ease in