fix back eases's min value

This commit is contained in:
jill 2021-09-18 12:09:52 +03:00
parent 3e57daa1c8
commit e6565f5144

View file

@ -162,14 +162,14 @@ end, {1, 3, 1, 'a'}, {0, 2, 0.3, 'p'}, overridemin = true})
table.insert(self, {'inBack', function(t, a)
return t * t * (a * t + t - a)
end, {0, 3, 1.70158, 'a'}})
end, {0, 3, 1.70158, 'a'}, overridemin = true})
table.insert(self, {'outBack', function(t, a)
t = t - 1 return t * t * ((a + 1) * t + a) + 1
end, {0, 3, 1.70158, 'a'}})
end, {0, 3, 1.70158, 'a'}, overridemin = true})
table.insert(self, {'inOutBack', function(t, a)
return t < 0.5
and 0.5 * self.inBack(t * 2, a)
or 0.5 + 0.5 * self.outBack(t * 2 - 1, a)
end, {0, 3, 1.70158, 'a'}})
end, {0, 3, 1.70158, 'a'}, overridemin = true})
return self