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