From 9080dd76078fccb9afad79f35445c9c5a8968b93 Mon Sep 17 00:00:00 2001 From: jill Date: Sat, 18 Sep 2021 13:54:09 +0300 Subject: [PATCH] change damp minimum --- easelib.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easelib.lua b/easelib.lua index ea5a901..35aee15 100644 --- a/easelib.lua +++ b/easelib.lua @@ -34,17 +34,17 @@ table.insert(self, {'inverse', function(t) return t * t * (1 - t) * (1 - t) / (0 table.insert(self, {'popElastic', function(t, damp, count) return (1000 ^ -(t ^ damp) - 0.001) * sin(count * pi * t) -end, {1, 10, 1.4, 'damp'}, {1, 25, 6, 'count'}, type = 'pulse'}) +end, {0, 10, 1.4, 'damp'}, {1, 25, 6, 'count'}, type = 'pulse'}) table.insert(self, {'tapElastic', function(t, damp, count) return (1000 ^ -((1 - t) ^ damp) - 0.001) * sin(count * pi * (1 - t)) -end, {1, 10, 1.4, 'damp'}, {1, 25, 6, 'count'}, type = 'pulse'}) +end, {0, 10, 1.4, 'damp'}, {1, 25, 6, 'count'}, type = 'pulse'}) table.insert(self, {'pulseElastic', function(t, damp, count) if t < .5 then return self.tapElastic(t * 2, damp, count) else return -self.popElastic(t * 2 - 1, damp, count) end -end, {1, 10, 1.4, 'damp'}, {1, 25, 6, 'count'}, type = 'pulse'}) +end, {0, 10, 1.4, 'damp'}, {1, 25, 6, 'count'}, type = 'pulse'}) table.insert(self, {'impulse', function(t, damp) t = t ^ damp